John Kelly wrote:
> #!/bin/bash
>
> # With -e -o pipefail, this script should exit immediately upon returning
> # from the pipeline, since grep does not match its string, and returns 1.
This is not true, strictly speaking. The `-e' option applies to only
simple commands. Bash does make `-e' apply to pipelines whose last
element is a simple command, but only for compatibility with historical
shell implementations. That accounts for the apparent anomaly.
Posix is not exactly clear on this topic, but I believe bash's
interpretation is conformant.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Live Strong. No day but today.
Chet Ramey, ITS, CWRU [EMAIL PROTECTED] http://cnswww.cns.cwru.edu/~chet/
_______________________________________________
Bug-bash mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-bash