From 0e15138c03db5ac6b68ac24a074bf1c1532cbe1e Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 6 Apr 2009 18:40:31 +0000 Subject: hush: fix "if false; then...fi" exitcode; trim "keyword"-less hush by 10 bytes --- shell/hush_test/hush-misc/if_false_exitcode.right | 1 + shell/hush_test/hush-misc/if_false_exitcode.tests | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 shell/hush_test/hush-misc/if_false_exitcode.right create mode 100755 shell/hush_test/hush-misc/if_false_exitcode.tests (limited to 'shell/hush_test/hush-misc') diff --git a/shell/hush_test/hush-misc/if_false_exitcode.right b/shell/hush_test/hush-misc/if_false_exitcode.right new file mode 100644 index 0000000..7b24a35 --- /dev/null +++ b/shell/hush_test/hush-misc/if_false_exitcode.right @@ -0,0 +1 @@ +Ok:0 diff --git a/shell/hush_test/hush-misc/if_false_exitcode.tests b/shell/hush_test/hush-misc/if_false_exitcode.tests new file mode 100755 index 0000000..01b36b1 --- /dev/null +++ b/shell/hush_test/hush-misc/if_false_exitcode.tests @@ -0,0 +1,2 @@ +if false; then echo Bad; fi +echo Ok:$? -- cgit v1.1