about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2013-10-06 21:35:27 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2013-10-06 21:35:27 +0100
commit52364258654418127d544d31b3c49b61019e2c7e (patch)
treec9942861227e2834769bea53a23f530703b8a8f0 /Test
parent16ff79a885f28bc9509901dd5d8ce9ccc9960811 (diff)
downloadzsh-52364258654418127d544d31b3c49b61019e2c7e.tar.gz
zsh-52364258654418127d544d31b3c49b61019e2c7e.tar.xz
zsh-52364258654418127d544d31b3c49b61019e2c7e.zip
users:18023: Add PIPEFAIL option
Diffstat (limited to 'Test')
-rw-r--r--Test/E01options.ztst15
1 files changed, 15 insertions, 0 deletions
diff --git a/Test/E01options.ztst b/Test/E01options.ztst
index bcb34c352..e00eb0e9c 100644
--- a/Test/E01options.ztst
+++ b/Test/E01options.ztst
@@ -1096,3 +1096,18 @@
 0:IGNORE_CLOSE_BRACES option
 >this is OK
 >6
+
+  (setopt pipefail
+  true | true | true
+  print $?
+  true | false | true
+  print $?
+  exit 2 | false | true
+  print $?
+  false | exit 2 | true
+  print $?)
+0:PIPE_FAIL option
+>0
+>1
+>1
+>2