aboutsummaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-vars/var_wordsplit_ifs1.tests
blob: 532ab992e57db01a19333133d39f6225a4206dda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
set -- abc "d e"

echo 'Testing: !IFS $*'
unset IFS; for a in $*; do echo ".$a."; done
echo 'Testing: !IFS $@'
unset IFS; for a in $@; do echo ".$a."; done
echo 'Testing: !IFS "$*"'
unset IFS; for a in "$*"; do echo ".$a."; done
echo 'Testing: !IFS "$@"'
unset IFS; for a in "$@"; do echo ".$a."; done

echo 'Testing: IFS="" $*'
IFS=""; for a in $*; do echo ".$a."; done
echo 'Testing: IFS="" $@'
IFS=""; for a in $@; do echo ".$a."; done
echo 'Testing: IFS="" "$*"'
IFS=""; for a in "$*"; do echo ".$a."; done
echo 'Testing: IFS="" "$@"'
IFS=""; for a in "$@"; do echo ".$a."; done

echo Finished