Expansion
*********
The following types of expansions are performed in the indicated order
in five steps:
_History Expansion_
This is performed only in interactive shells.
_Alias Expansion_
Aliases are expanded immediately before the command line is parsed
as explained in Note:Aliasing.
_Process Substitution_
_Parameter Expansion_
_Command Substitution_
_Arithmetic Expansion_
_Brace Expansion_
These five are performed in one step in left-to-right fashion.
After these expansions, all unquoted occurrences of the characters
`\', `'' and `"' are removed.
_Filename Expansion_
If the SH_FILE_EXPANSION option is set, the order of expansion is
modified for compatibility with `sh' and `ksh'. In that case
_filename expansion_ is performed immediately after _alias
expansion_, preceding the set of five expansions mentioned above.
_Filename Generation_
This expansion, commonly referred to as `globbing', is always done
last.
The following sections explain the types of expansion in detail.