From 65e131c838be6a300b41e3fa8259c281714e4918 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Wed, 23 Oct 2013 22:45:02 -0700 Subject: 31879 plus misc.: improve $pipestatus handling and add a test for it --- Test/A05execution.ztst | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Test') diff --git a/Test/A05execution.ztst b/Test/A05execution.ztst index b4fb8739a..c42e454f3 100644 --- a/Test/A05execution.ztst +++ b/Test/A05execution.ztst @@ -178,3 +178,14 @@ kill $! 0:Status reset by starting a backgrounded command >0 + + repeat 2048; do (: | : | while false; do + break + done; + print "${pipestatus[@]}") + ZTST_hashmark + done | sort | uniq -c +0:Check whether `$pipestatus[]' behaves. +> 2048 0 0 0 +F:This test checks for a bug in `$pipestatus[]' handling. If it breaks then +F:the bug is still there or it reappeared. See workers-29973 for details. -- cgit 1.4.1