Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: