On Mon, 04 Dec 2006 11:53:03 -0500, Chet Ramey <[EMAIL PROTECTED]>
wrote:
>> # 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 onl
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' app
#!/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.
# However, any trivial compound statement at the end of the pipeline will
# cause the script to continue running. It's possible to work