沙盒:修订间差异
来自Ubuntu中文
跳到导航跳到搜索
无编辑摘要 |
小无编辑摘要 |
||
第10行: | 第10行: | ||
| How to specify comments. | | How to specify comments. | ||
|} | |} | ||
When the shell reads input, it proceeds through a sequence of operations. If the input indicates the beginning of a comment, the shell ignores the comment symbol (‘#’), and the rest of that line. | |||
Otherwise, roughly speaking, the shell reads its input and divides the input into words and operators, employing the quoting rules to select which meanings to assign various words and characters. | |||
The shell then parses these tokens into commands and other constructs, removes the special meaning of certain words or characters, expands others, redirects input and output as needed, executes the specified command, waits for the command’s exit status, and makes that exit status available for further inspection or processing. |
2016年6月28日 (二) 17:18的版本
Shell Operation: | The basic operation of the shell. |
Quoting: | How to remove the special meaning from characters. |
Comments: | How to specify comments. |
When the shell reads input, it proceeds through a sequence of operations. If the input indicates the beginning of a comment, the shell ignores the comment symbol (‘#’), and the rest of that line.
Otherwise, roughly speaking, the shell reads its input and divides the input into words and operators, employing the quoting rules to select which meanings to assign various words and characters.
The shell then parses these tokens into commands and other constructs, removes the special meaning of certain words or characters, expands others, redirects input and output as needed, executes the specified command, waits for the command’s exit status, and makes that exit status available for further inspection or processing.