个人工具

“沙盒”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
 
(未显示3个用户的35个中间版本)
第1行: 第1行:
3.1.1 Shell Operation
+
[[文件:14.png]]
 
+
The following is a brief description of the shell’s operation when it reads and executes a command. Basically, the shell does the following:
+
 
+
# Reads its input from a file (see [[#Shell Scripts|Shell Scripts]]), from a string supplied as an argument to the -c invocation option (see Invoking Bash), or from the user’s terminal.
+
# Breaks the input into words and operators, obeying the quoting rules described in Quoting. These tokens are separated by metacharacters. Alias expansion is performed by this step (see Aliases).
+
# Parses the tokens into simple and compound commands (see Shell Commands).
+
# Performs the various shell expansions (see Shell Expansions), breaking the expanded tokens into lists of filenames (see Filename Expansion) and commands and arguments.
+
# Performs any necessary redirections (see Redirections) and removes the redirection operators and their operands from the argument list.
+
# Executes the command (see Executing Commands).
+
# Optionally waits for the command to complete and collects its exit status (see Exit Status).
+

2023年10月22日 (日) 12:07的最新版本

14.png