On 2013-06-19 17:29, Trent W. Buck wrote: > Tim Connors <[email protected]> > writes: > > > http://mywiki.wooledge.org/BashFAQ/105 > > > > (subshells in bash don't always inherit "set -e" from the parent. > > This WFM, YMMV, #bash doesn't like it. > > #!/bin/bash > ## Program description goes here > # Boilerplate prelude ################################################ > set -eEu > set -o pipefail > trap 'echo >&2 "$0: unknown error"' ERR > while getopts d opt > do case "$opt" in (x) set -x;; ('?') exit 1;; esac > done > shift $((${OPTIND:-1}-1)) > # Begin code #########################################################
What's their problem with it? -- Regards, Matthew Cengia
signature.asc
Description: Digital signature
_______________________________________________ luv-main mailing list [email protected] http://lists.luv.asn.au/listinfo/luv-main
