From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/bash/shell-operation.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 devdocs/bash/shell-operation.html (limited to 'devdocs/bash/shell-operation.html') diff --git a/devdocs/bash/shell-operation.html b/devdocs/bash/shell-operation.html new file mode 100644 index 00000000..a59209f9 --- /dev/null +++ b/devdocs/bash/shell-operation.html @@ -0,0 +1,13 @@ +

Shell Operation

The following is a brief description of the shell’s operation when it reads and executes a command. Basically, the shell does the following:

  1. Reads its input from a file (see Shell Scripts), from a string supplied as an argument to the -c invocation option (see Invoking Bash), or from the user’s terminal.
  2. +
  3. 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).
  4. +
  5. Parses the tokens into simple and compound commands (see Shell Commands).
  6. +
  7. Performs the various shell expansions (see Shell Expansions), breaking the expanded tokens into lists of filenames (see Filename Expansion) and commands and arguments.
  8. +
  9. Performs any necessary redirections (see Redirections) and removes the redirection operators and their operands from the argument list.
  10. +
  11. Executes the command (see Executing Commands).
  12. +
  13. Optionally waits for the command to complete and collects its exit status (see Exit Status).
  14. +
+

+ Copyright © 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
Licensed under the GNU Free Documentation License.
+ https://www.gnu.org/software/bash/manual/html_node/Shell-Operation.html +

+
-- cgit v1.2.3