Refer to “Processing the Command Line” on page 354 for an introduction to command-line expansion in the Bourne Again Shell. The tcsh man page uses the term substitution instead of expansion; the latter is used by bash. The TC Shell scans each token on a command line for possible expansion in the following order:
1. History substitution (below)
2. Alias substitution (page 377)
3. Variable substitution (page 386)
4. Command substitution (page 379)
5. Filename substitution (page 378)
6. Directory stack substitution (page 379)
The TC Shell assigns a sequential event number to each command line. You can display this event number as part of the tcsh prompt (refer to “prompt” on page 393). Examples in this ...