aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-04-05 02:10:39 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-04-05 02:10:39 +0000
commit30db43b5c566b498f39dfc63767277a0e8f347d2 (patch)
treecfda2d561906405f16843fb181961ee353cb1b03 /shell/hush_test
parent16a0c74f638d2d730525856d391078f2ea662aeb (diff)
downloadbusybox-30db43b5c566b498f39dfc63767277a0e8f347d2.tar.gz
hush: fix passing of $n on NOMMU
Diffstat (limited to 'shell/hush_test')
-rw-r--r--shell/hush_test/hush-vars/param_subshell.right7
-rwxr-xr-xshell/hush_test/hush-vars/param_subshell.tests13
2 files changed, 20 insertions, 0 deletions
diff --git a/shell/hush_test/hush-vars/param_subshell.right b/shell/hush_test/hush-vars/param_subshell.right
new file mode 100644
index 000000000..f3c3767de
--- /dev/null
+++ b/shell/hush_test/hush-vars/param_subshell.right
@@ -0,0 +1,7 @@
+1=1
+2=2
+3=3
+4=4
+5=5
+6=6
+7=7
diff --git a/shell/hush_test/hush-vars/param_subshell.tests b/shell/hush_test/hush-vars/param_subshell.tests
new file mode 100755
index 000000000..6beaeae66
--- /dev/null
+++ b/shell/hush_test/hush-vars/param_subshell.tests
@@ -0,0 +1,13 @@
+if test $# = 0; then
+ "$THIS_SH" "$0" 1 2 3 4 5 6 7 8 9
+ exit
+fi
+echo 1=$1
+{ echo 2=$2; }
+{ echo 3=$3; } &
+usleep 100000
+( echo 4=$4 )
+( echo 5=$5 ) &
+usleep 100000
+true | echo 6=$6 | cat
+true | { echo 7=$7; } | cat