From ad8d68dd4390753901b5e1dae4b4c4b44be7fcea Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Thu, 31 Jan 2013 15:57:08 -0800 Subject: Make subcommands modify $status, and make builtin_set not modify status unless it fails https://github.com/fish-shell/fish-shell/issues/547 https://github.com/fish-shell/fish-shell/issues/214 --- tests/test4.out | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests/test4.out') diff --git a/tests/test4.out b/tests/test4.out index 5a14f80a..148d870c 100644 --- a/tests/test4.out +++ b/tests/test4.out @@ -20,3 +20,17 @@ Test 19 pass Test 20 pass Test 21 pass Test 22 pass +Verify subcommand statuses +1 0 1 +Verify that set passes through exit status, except when passed -n or -q or -e +1 1 +2 0 +3 0 +4 0 +5 0 +6 0 +7 1 +8 0 +9 1 +10 0 A +11 1 B -- cgit v1.2.3