Denis Vlasenko | 30db43b | 2009-04-05 02:10:39 +0000 | [diff] [blame] | 1 | if test $# = 0; then |
| 2 | "$THIS_SH" "$0" 1 2 3 4 5 6 7 8 9 |
| 3 | exit |
| 4 | fi |
| 5 | echo 1=$1 |
| 6 | { echo 2=$2; } |
| 7 | { echo 3=$3; } & |
Mike Frysinger | 932e111 | 2009-04-07 06:08:14 +0000 | [diff] [blame] | 8 | # cant use usleep as it isnt standard in $PATH -- |
| 9 | # we fail when testing busybox compiled solely as "hush" |
Denis Vlasenko | 1fd1ea4 | 2009-04-10 12:03:20 +0000 | [diff] [blame] | 10 | wait |
Denis Vlasenko | 30db43b | 2009-04-05 02:10:39 +0000 | [diff] [blame] | 11 | ( echo 4=$4 ) |
| 12 | ( echo 5=$5 ) & |
Denis Vlasenko | 1fd1ea4 | 2009-04-10 12:03:20 +0000 | [diff] [blame] | 13 | wait |
Denis Vlasenko | 30db43b | 2009-04-05 02:10:39 +0000 | [diff] [blame] | 14 | true | echo 6=$6 | cat |
| 15 | true | { echo 7=$7; } | cat |