I just hit this incredibly retarded irritating gotcha in Mac OS Leopard. Luckily, unlike this poor bastard, it only cost me an hour.
Bash echo is supposed to interpret \ escape sequences (e.g. \n) if you supply it a -e flag. This works from the command line. It works in shell scripts. [...]
