1 # first, let's start with the basics
13 # If IFS is null, the parameters are joined without separators
17 # If IFS is unset, the parameters are separated by spaces
25 set bob 'tom dick harry' joe
32 set bob 'tom dick harry' joe
39 set bob 'tom dick harry' joe
46 set bob 'tom dick harry' joe
53 # according to POSIX.2, unquoted $* should expand to multiple words if
54 # $IFS is null, just like unquoted $@
56 set bob 'tom dick harry' joe
63 set bob 'tom dick harry' joe
70 # if IFS is unset, the individual positional parameters are split on
71 # " \t\n" if $* or $@ are unquoted
73 set bob 'tom dick harry' joe
80 set bob 'tom dick harry' joe
87 # but not for "$@" or "$*"
88 set bob 'tom dick harry' joe
95 set bob 'tom dick harry' joe
102 # POSIX.2 says these should both expand the positional parameters
109 # this example is straight from the POSIX.2 rationale