Common shell script mistakes (2008)
pixelbeat.org
Common shell script mistakes (2008)
1–10 of 82 posts
Re: Common shell script mistakes (2008)
#2Shout out to Shellcheck (http://www.shellcheck.net/), a linter for shell scripts
Re: Common shell script mistakes (2008)
#3Shout out to Shellcheck ( http://www.shellcheck.net/ ), a linter for shell scripts
If you're on Sublime, this works like a charm!
Re: Common shell script mistakes (2008)
#4Written in 2008.
Re: Common shell script mistakes (2008)
#5Written in 2008.
Thanks; added.
Re: Common shell script mistakes (2008)
#6[deleted]
Re: Common shell script mistakes (2008)
#7Shout out to Shellcheck ( http://www.shellcheck.net/ ), a linter for shell scripts
If you're on Sublime, this works like a charm! https://github.com/SublimeLinter/SublimeLinter-shellcheck
If you're on Vim or Emacs you already (maybe) know you have integration with shellcheck
Emacs - https://github.com/koalaman/shellcheck
Vim - part of syntactic - https://github.com/scrooloose/syntastic/blob/master/syntax_c...
Re: Common shell script mistakes (2008)
#8The google shell style guide linked now lives here and is probably an even better starting point than this article:
Re: Common shell script mistakes (2008)
#9Written in 2008.
Shell hasn't changed much, if at all, since, has it?
Re: Common shell script mistakes (2008)
#10> please be wary of writing scripts that deviate from these abstractions, and have significant data manipulation in the shell process itself.
I appreciate he mentions this first. Shell scripting is excellent in its domain, just as SQL is great in its.
You would write an application in SQL and you shouldn't write one in shell.