From 8f2ce89a0c80f6a0ecdc7c1189d6a94f620882f4 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 10 Oct 2016 10:55:48 +0100 Subject: 39599: Don't reset status before "case" execution --- Test/A01grammar.ztst | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Test/A01grammar.ztst') diff --git a/Test/A01grammar.ztst b/Test/A01grammar.ztst index 0b1085c3e..0e77f3ebc 100644 --- a/Test/A01grammar.ztst +++ b/Test/A01grammar.ztst @@ -757,6 +757,14 @@ >} >Stuff here + (exit 37) + case $? in + (37) echo $? + ;; + esac +0:case retains exit status for execution of cases +>37 + x=1 x=2 | echo $x echo $x -- cgit 1.4.1