Skip to main content


Its been a long time since someone wrote shell unportable enough to ruin my day.

If you're gonna use bashisms, don't just huck them into `/bin/sh`

in reply to silverwizard

I guess technically they ran:

sh `#!/bin/bash;if [[ "$FOO" == BAR && "$BAZ" = BLEEN ]]; then;echo true;else;echo false;fi

Which implies they knew it was base and not just raw shell?

in reply to silverwizard

When I get weird "I don't understand why this isn't working correctly" I flip the interpreter to bash and retest, and more often then not angrily mutter "I can walk! It's a Christmas Miracle! Thank you officers!"