summaryrefslogtreecommitdiff
path: root/shell/hush_test
diff options
context:
space:
mode:
authorDenis Vlasenko2008-07-31 10:09:26 +0000
committerDenis Vlasenko2008-07-31 10:09:26 +0000
commitf173607520e0455d267a7a4100e5018f30000c56 (patch)
tree6699a09a57e45890ac07eb4ec2964f9ed7486230 /shell/hush_test
parentfbeeb328b8a2e0006f9a53ddea6892f9c1a03132 (diff)
downloadbusybox-f173607520e0455d267a7a4100e5018f30000c56.zip
busybox-f173607520e0455d267a7a4100e5018f30000c56.tar.gz
hush: fix "case ... in <newline> word)..."
Diffstat (limited to 'shell/hush_test')
-rw-r--r--shell/hush_test/hush-misc/case1.right1
-rwxr-xr-xshell/hush_test/hush-misc/case1.tests8
2 files changed, 9 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/case1.right b/shell/hush_test/hush-misc/case1.right
index 9b88658..e9e371a 100644
--- a/shell/hush_test/hush-misc/case1.right
+++ b/shell/hush_test/hush-misc/case1.right
@@ -1,4 +1,5 @@
OK_1
+OK_1
OK_21
OK_22
OK_23
diff --git a/shell/hush_test/hush-misc/case1.tests b/shell/hush_test/hush-misc/case1.tests
index 15f60f3..0174893 100755
--- a/shell/hush_test/hush-misc/case1.tests
+++ b/shell/hush_test/hush-misc/case1.tests
@@ -1,5 +1,13 @@
case w in a) echo SKIP;; w) echo OK_1;; w) echo WRONG;; esac
+case w in
+ a) echo SKIP;;
+ w)echo OK_1 ;;
+ w)
+ echo WRONG
+ ;;
+esac
+
t=w
case $t in a) echo SKIP;; w) echo OK_21;; w) echo WRONG;; esac;
case "$t" in a) echo SKIP;; w) echo OK_22;; w) echo WRONG;; esac;