Package: bash
Version: 3.1dfsg-8

-anarres:~/junk> bash -xec 'set -o pipefail; echo 1; yes | true; echo 2'
+ set -o pipefail
+ echo 1
1
+ yes
+ true
-anarres:~/junk>

Running `yes | true' is not an error.  As an example of a more
reasonable use case, consider:
  wc -l *.c | sort -n | head -1

Ian.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to