Discussion:
[ale] Ksh script style checker or best practices
Jonathan Meek
2017-10-20 23:49:21 UTC
Permalink
Hello folks,

I have gotten involved in a new placement at work where I am writing ksh
scripts and have fallen in love with it. I never thought I would enjoy this
because ksh scripts were always a bit of reach. I am curious is there some
tool like Python's PEP8 style checker for bash scripts? If not, some place
to find best practices towards style and syntax?

I am just trying to avoid future me being utterly angered at some unknown
idiot and then to find git blame saying it is past me.

Jonathan
Michael Potter
2017-10-21 00:17:04 UTC
Permalink
I am tentatively scheduled to give my "Seat Belt and Airbags for bash"
presentation at the Red Hat group on Nov 14th.

It is tentative right now, but sign up for the group on meetup and you will
get notified when it is scheduled.

It is not a what you are asking for but I give a laundry list of syntax to
not use.
Post by Jonathan Meek
Hello folks,
I have gotten involved in a new placement at work where I am writing ksh
scripts and have fallen in love with it. I never thought I would enjoy this
because ksh scripts were always a bit of reach. I am curious is there some
tool like Python's PEP8 style checker for bash scripts? If not, some place
to find best practices towards style and syntax?
I am just trying to avoid future me being utterly angered at some unknown
idiot and then to find git blame saying it is past me.
Jonathan
_______________________________________________
Ale mailing list
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
--
Michael Potter
Tapp Solutions, LLC
www.tappsolutions.com
+1 770 815 6142 ** Atlanta ** ***@potter.name **
www.linkedin.com/in/michaelpotter
Schedule a meeting with me: https://calendly.com/michael-potter
Jonathan Meek
2017-11-04 20:20:56 UTC
Permalink
Thanks for the heads up. Unfortunately, Gmail threw all my ALE mail into
spam and just found this mail. Sorry for not responding sooner.

Jonathan
Post by Michael Potter
I am tentatively scheduled to give my "Seat Belt and Airbags for bash"
presentation at the Red Hat group on Nov 14th.
It is tentative right now, but sign up for the group on meetup and you
will get notified when it is scheduled.
It is not a what you are asking for but I give a laundry list of syntax to
not use.
Post by Jonathan Meek
Hello folks,
I have gotten involved in a new placement at work where I am writing ksh
scripts and have fallen in love with it. I never thought I would enjoy this
because ksh scripts were always a bit of reach. I am curious is there some
tool like Python's PEP8 style checker for bash scripts? If not, some place
to find best practices towards style and syntax?
I am just trying to avoid future me being utterly angered at some unknown
idiot and then to find git blame saying it is past me.
Jonathan
_______________________________________________
Ale mailing list
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
--
Michael Potter
Tapp Solutions, LLC
www.tappsolutions.com
www.linkedin.com/in/michaelpotter
Schedule a meeting with me: https://calendly.com/michael-potter
_______________________________________________
Ale mailing list
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Joe Morris
2017-10-21 16:38:43 UTC
Permalink
Post by Jonathan Meek
Hello folks,
I have gotten involved in a new placement at work where I am writing ksh
scripts and have fallen in love with it. I never thought I would enjoy this
because ksh scripts were always a bit of reach. I am curious is there some
tool like Python's PEP8 style checker for bash scripts? If not, some place
to find best practices towards style and syntax?
I am just trying to avoid future me being utterly angered at some unknown
idiot and then to find git blame saying it is past me.
Hi,
This is kind of a lint for shell scripts with some style suggestions:
https://github.com/koalaman/shellcheck

I recently found it from this blog post
https://utcc.utoronto.ca/~cks/space/blog/programming/ShellcheckGoodForMe

Good luck
--
Joe Morris Atlanta history blog
***@jolomo.net http://atlhistory.com
_______________________________________________
Ale mailing list
***@ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Loading...