projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc9205b
)
hush_test: add subshelled case tests
author
Mike Frysinger
<vapier@gentoo.org>
Thu, 21 May 2009 22:09:24 +0000
(18:09 -0400)
committer
Mike Frysinger
<vapier@gentoo.org>
Thu, 21 May 2009 22:09:24 +0000
(18:09 -0400)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
shell/hush_test/hush-misc/case1.tests
patch
|
blob
|
history
diff --git
a/shell/hush_test/hush-misc/case1.tests
b/shell/hush_test/hush-misc/case1.tests
index
0174893
..
b2c96cc
100755
(executable)
--- a/
shell/hush_test/hush-misc/case1.tests
+++ b/
shell/hush_test/hush-misc/case1.tests
@@
-23,3
+23,15
@@
case `echo w w` in a) echo SKIP;; w) echo WRONG;; w*) echo OK_44;; esac;
case w in `echo w`) echo OK_51;; `echo WRONG >&2`w) echo WRONG;; esac;
case w in `echo OK_52 >&2`) echo SKIP;; `echo`w) echo OK_53;; esac;
+
+# parsing cases in subshells can easily get messy
+ case m in m) echo ok-sub1;; esac
+ case m in (m) echo ok-sub2;; esac
+(case m in m) echo ok-sub3;; esac)
+(case m in (m) echo ok-sub4;; esac)
+(
+ case m in m) echo ok-sub5;; esac
+)
+(
+ case m in (m) echo ok-sub6;; esac
+)