On 02/27/12 04:11, Dan Douglas wrote: > "If word is unquoted, all lines of the here-document are subjected to > parameter expansion, command substitution, and arithmetic expansion." > > No pathname expansion.
That section of manual doesn't specifically include word splitting nor pathname expansion into the list of performed expansions, but the word splitting does include itself unconditionally: > Word Splitting > The shell scans the results of parameter expansion, command substitu- > tion, and arithmetic expansion that did not occur within double quotes > for word splitting. and pathname expansion ties itself to word splitting: > Pathname Expansion > After word splitting, [...] If intended behaviour is to exclude some expansions from performing word splitting or pathname expansion, they should be specifically pointed out in the manual, like the assignment operator section does: > A variable may be assigned to by a statement of the form > > name=[value] > > [...] All values undergo tilde expansion, parameter and variable > expansion, command substitution, arithmetic expansion, and quote > removal (see EXPANSION below). [...] Word splitting is not > performed, with the exception of "$@" as explained below under > Special Parameters. Pathname expansion is not performed.