diff options
author | Mike Frysinger | 2009-05-21 18:09:24 -0400 |
---|---|---|
committer | Mike Frysinger | 2009-05-21 18:09:24 -0400 |
commit | 7b424fe738e554e41e3c581e8e13808e317e53f0 (patch) | |
tree | 1b4433a42d59715c8de09e64567f54f1649e9e66 /shell/hush_test | |
parent | cc9205bda7c675e347516b93e865e462d2299a78 (diff) | |
download | busybox-7b424fe738e554e41e3c581e8e13808e317e53f0.zip busybox-7b424fe738e554e41e3c581e8e13808e317e53f0.tar.gz |
hush_test: add subshelled case tests
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'shell/hush_test')
-rwxr-xr-x | shell/hush_test/hush-misc/case1.tests | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/case1.tests b/shell/hush_test/hush-misc/case1.tests index 0174893..b2c96cc 100755 --- 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 +) |