
19 Jun
2013
19 Jun
'13
7:32 a.m.
On 2013-06-19 17:29, Trent W. Buck wrote:
Tim Connors <tconnors@rather.puzzling.org> 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