STOP USING #!/bin/bash NOT EVERY SYSTEM IS LINUX. STOP WRITING BASHISMS AND USING #!/bin/sh AS YOUR SHEBANG. FUCKING HELL GUYS.
Do you happen to know of a linter to guard against bashisms? ShellCheck seems to presume you'll use them. I shebang with #!/bin/sh but can't say I check it against other shells >.>
-
-
shell check actually helps you avoid bashisms when using the #!/bin/sh shebang
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Now I'm confused (I'm not a born nixer) should it be #!/usr/bin/env bash or #!/bin/sh ?
-
the former for bash. The latter for proper sh. :)
End of conversation
New conversation -
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.