busybox/shell/hush_test/hush-vars/param_subshell.tests

16 lines
317 B
Plaintext
Raw Normal View History

2009-04-05 07:40:39 +05:30
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; } &
2009-04-07 11:38:14 +05:30
# cant use usleep as it isnt standard in $PATH --
# we fail when testing busybox compiled solely as "hush"
sleep 1
2009-04-05 07:40:39 +05:30
( echo 4=$4 )
( echo 5=$5 ) &
2009-04-07 11:38:14 +05:30
sleep 1
2009-04-05 07:40:39 +05:30
true | echo 6=$6 | cat
true | { echo 7=$7; } | cat