diff options
author | Denis Vlasenko | 2009-04-06 18:40:31 +0000 |
---|---|---|
committer | Denis Vlasenko | 2009-04-06 18:40:31 +0000 |
commit | 0e15138c03db5ac6b68ac24a074bf1c1532cbe1e (patch) | |
tree | 0f8806b8ebc01be3fe33541c01864655bb6c6f3b /shell/hush_test/hush-misc | |
parent | 4ed67dd3d5a042470c6bc04723c2a0a37ca072b7 (diff) | |
download | busybox-0e15138c03db5ac6b68ac24a074bf1c1532cbe1e.zip busybox-0e15138c03db5ac6b68ac24a074bf1c1532cbe1e.tar.gz |
hush: fix "if false; then...fi" exitcode;
trim "keyword"-less hush by 10 bytes
Diffstat (limited to 'shell/hush_test/hush-misc')
-rw-r--r-- | shell/hush_test/hush-misc/if_false_exitcode.right | 1 | ||||
-rwxr-xr-x | shell/hush_test/hush-misc/if_false_exitcode.tests | 2 |
2 files changed, 3 insertions, 0 deletions
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:$? |