Bash Command Line Expansion: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 7: Line 7:
Each line read by bash from command line is interpreted as a [[Bash_Concepts#Pipeline|pipeline]]: a sequence of commands separated by the [[Bash_Concepts#.7C|pipe character (|)]].
Each line read by bash from command line is interpreted as a [[Bash_Concepts#Pipeline|pipeline]]: a sequence of commands separated by the [[Bash_Concepts#.7C|pipe character (|)]].


Each command is split into tokens that separated by [[Bash_Concepts#Metacharacters|metacharacters]].
Command processing starts by checking the first word of the command against an alias list, and if a match is found, the alias is replaced.
 
Then the result is parsed into tokens by using [[Bash_Concepts#Metacharacters|metacharacters]] as separators.

Revision as of 00:06, 9 September 2017

Internal

Overview

Each line read by bash from command line is interpreted as a pipeline: a sequence of commands separated by the pipe character (|).

Command processing starts by checking the first word of the command against an alias list, and if a match is found, the alias is replaced.

Then the result is parsed into tokens by using metacharacters as separators.