Bash and Perl
Bash and Perl
Posted Oct 2, 2014 15:38 UTC (Thu) by madscientist (subscriber, #16861)In reply to: Bash and Perl by gwolf
Parent article: Bash gets shellshocked
Well, $() is POSIX. And "local" has been proposed for inclusion in POSIX sh and found to be generally available, in some form, in most sh implementations already.
As others have pointed out, if you want to write bash scripts that's fine and it's trivial to do: just start your script with #!/bin/bash. If you want to write POSIX shell scripts, start your script with #!/bin/sh. If you use #!/bin/sh and you use bash-isms, your script is simply wrong.
