> Well, it would be okay, if you specified /bin/bash -e or even
> /bin/hush -e (once it is added, if will). But sh -e is wrong, because
> you claim only basic POSIX shell, and it doesn't have -e option. Yes,
> with sh you're need to do [ $? -eq 0 ] || exit $?

 SUSv4 disagrees.
 From http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sh.html :

 sh [-abCefhimnuvx] (...)
 (...)
 The -a, -b, -C, -e, -f, -m, -n, -o option, -u, -v, and -x options are
described as part of the set utility in Special Built-In Utilities.

 It is extremely clear that /bin/sh is expected to support all of these
options.

 I like sh -e *precisely* because it saves me the hassle of writing
"command || die" at every line. I know how to live without -e, I even
know how to live without /bin/sh; I'm just asking for the support of
sh -e in hush as a matter of convenience, *especially* if /bin/hush
already supports it.

-- 
 Laurent
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to