Content deleted Content added
m tidy gnu ref |
Blush30720 (talk | contribs) →Tokenization: Shorten lists of operators |
||
Line 497:
}}</ref>
===
: <syntaxhighlight lang = text>
Line 511:
When Bash reads a full commandline, the complete string is broken down according to a certain set of rules into individual units called ''tokens.''
''Tokens'' are identified using, and separated from each other using ''metacharacters.'' (As of version 5.3:)
* The ten ''"metacharacters:"''
: {{Pre |‘space’ ‘tab’ ‘newline’ ‘|’ ‘&’ ‘;’ ‘(’ ‘)’ ‘<’ ‘>’}}
Line 522:
From there it further breaks ''words'' down into more specific, meaningful pieces like command names, variable assignment statements, etc.
* The two ''
: {{Pre |‘space’ ‘tab’}}
Line 528:
* ''Operators''
:* Eight of the twelve ''"control operators:"''
:: <syntaxhighlight lang = text>
‘newline’
</syntaxhighlight>
:* Five of the fourteen ''"redirection operators:"''
:: <syntaxhighlight lang = text>
‘<’ ‘
</syntaxhighlight>
Line 553:
* ''Words''
:* Sixteen of the twenty-two ''reserved words,'' which may be characters or words:
:: <syntaxhighlight lang = bash>
‘!’ ‘[[’ ‘{’ ‘]]’ ‘}’
</syntaxhighlight>
|