|
|
The order of expansions is: brace expansion, tilde expansion, parameter, variable and arithmetic expansion and command substitution (done in a left-to-right fashion), word splitting, and pathname expansion.
On systems that can support it, there is an additional expansion available: process substitution\fP.
Only brace expansion, word splitting, and pathname expansion can change the number of words of the expansion; other expansions expand a single word to a single word. The only exceptions to this are the expansions of "$@\fP" and "${\fPname\fP[@]}\fP" as explained above (see .SM .BR PARAMETERS ).
Web: http://shell.tjgy.com Email:support@tjgy.com