Tags » /bin/sh

shell booleans are commands!

How should we represent boolean flags in shell? A common approach, possibly inspired by C, is to set the variable to either 0 or 1. 245 more words

Programming

bash functions: it is mad!

bash can export functions to the environment. A consequence of this is that bash can import functions from the environment. This leaves us #shellshocked. #shellshock aside, why would anyone want to do this? 686 more words

Programming

Why big is bad

If you know me, you know that I don’t like using /bin/bash for scripting. It’s not that hard to write scripts that are portable, and… 579 more words

Programming

10 tips for turning bash scripts into portable POSIX scripts

In the light of ShellShock you might be wondering whether you really need bash at all. A lot of things that are bash-specific have portable alternatives that are generally only a little bit less convenient. 635 more words

/bin/sh