Re: pipefail bug

2006-12-04 Thread John Kelly
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

Re: pipefail bug

2006-12-04 Thread Chet Ramey
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

pipefail bug

2006-12-02 Thread John Kelly
#!/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