1 1 3.1 Shell Syntax 1 ================ 1
1 · Shell Operation The basic operation of the shell. · Quoting How to remove the special meaning from characters. · Comments How to specify comments. 1 1 When the shell reads input, it proceeds through a sequence of 1 operations. If the input indicates the beginning of a comment, the 1 shell ignores the comment symbol ('#'), and the rest of that line. 1 1 Otherwise, roughly speaking, the shell reads its input and divides 1 the input into words and operators, employing the quoting rules to 1 select which meanings to assign various words and characters. 1 1 The shell then parses these tokens into commands and other 1 constructs, removes the special meaning of certain words or characters, 1 expands others, redirects input and output as needed, executes the 1 specified command, waits for the command's exit status, and makes that 1 exit status available for further inspection or processing. 1