ash: [EXPAND] Split unquoted $@/$* correctly when IFS is set but empty
[oweals/busybox.git] / shell / hush_test / hush-vars / var_wordsplit_ifs1.tests
1 set -- abc "d e"
2
3 echo 'Testing: !IFS $*'
4 unset IFS; for a in $*; do echo ".$a."; done
5 echo 'Testing: !IFS $@'
6 unset IFS; for a in $@; do echo ".$a."; done
7 echo 'Testing: !IFS "$*"'
8 unset IFS; for a in "$*"; do echo ".$a."; done
9 echo 'Testing: !IFS "$@"'
10 unset IFS; for a in "$@"; do echo ".$a."; done
11
12 echo 'Testing: IFS="" $*'
13 IFS=""; for a in $*; do echo ".$a."; done
14 echo 'Testing: IFS="" $@'
15 IFS=""; for a in $@; do echo ".$a."; done
16 echo 'Testing: IFS="" "$*"'
17 IFS=""; for a in "$*"; do echo ".$a."; done
18 echo 'Testing: IFS="" "$@"'
19 IFS=""; for a in "$@"; do echo ".$a."; done
20
21 echo Finished