param_subshell.tests 311 B

123456789101112131415
  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; } &
  8. # cant use usleep as it isnt standard in $PATH --
  9. # we fail when testing busybox compiled solely as "hush"
  10. wait
  11. ( echo 4=$4 )
  12. ( echo 5=$5 ) &
  13. wait
  14. true | echo 6=$6 | cat
  15. true | { echo 7=$7; } | cat