Live data from Hacker News

Common shell script mistakes (2008)

pixelbeat.org

1–10 of 82 posts

Re: Common shell script mistakes (2008)

#7
post #3
post #2

Shout 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)

#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.

Post reply on HN