Skip to content

Comment on BASH as a Modern Programming Language [ppt]parent

Comments

I wish there was a linter to check shell scripts for non-POSIX syntax and command invocations.

I'm put off trying to really grok *sh scripting because the landscape seems a bit of a confusing mess.

Give checkbashisms a look. You can install it on Debian and its derivatives with

    sudo apt-get install devscripts
Edit: It's a bit hard to find a current checkbashisms version on the Web (the one on SourceForge is an abandoned fork of an older version), so I've uploaded a recent stable one to http://pastebin.com/Ncu6DRuM. If you're not on Debian and decide to keep it clone git://anonscm.debian.org/collab-maint/devscripts.git.

Thank you - I'm checking it out.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.