Tags » /bin/sh


Valve’s steam appears to be a package manager for installing Valve software (games). Part of steam on Linux is a shell script: steam.sh.

It turns out, if you’re not careful, if you try and uninstall steam or something… then this innocent 600 line shell script can kind of accidentally… 663 more words


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


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


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


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


Piping into shell may be harmful


curl https://thing | sh

It has become fashionable to see this kind of shell statement as a quick way of installing various bits of software ( 344 more words