blob: 22bfeca895456239febd64f164ee0f7bac255b2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
set -- ' abc' 'def ghi' 'jkl '
echo normal IFS
recho $@
: ${var=$@}
recho $var
unset -v var
recho ${var-$@}
echo null IFS
IFS=
recho $@
: ${var=$@}
recho $var
unset -v var
recho ${var-$@}
echo non-standard IFS
IFS=:
recho $@
: ${var=$@}
recho $var
unset -v var
recho ${var-$@} # this is inconsistent
echo unset IFS
recho $@
: ${var=$@}
recho $var
unset -v var
recho ${var-$@}
|