summaryrefslogtreecommitdiff
path: root/devdocs/bash/simple-command-expansion.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-08-14 22:58:58 -0500
committerCraig Jennings <c@cjennings.net>2025-08-14 22:58:58 -0500
commit82ba818ff456bcd6d56a06226e3f27e98fbb55c3 (patch)
tree158cfc17b2f644a10f063cb546752cfaae12c97f /devdocs/bash/simple-command-expansion.html
parent9278ddd4ea1a8b1a4c1edaa8894516e3f48d245b (diff)
downloaddotemacs-82ba818ff456bcd6d56a06226e3f27e98fbb55c3.tar.gz
dotemacs-82ba818ff456bcd6d56a06226e3f27e98fbb55c3.zip
removing all downloaded devdocs files
Diffstat (limited to 'devdocs/bash/simple-command-expansion.html')
-rw-r--r--devdocs/bash/simple-command-expansion.html10
1 files changed, 0 insertions, 10 deletions
diff --git a/devdocs/bash/simple-command-expansion.html b/devdocs/bash/simple-command-expansion.html
deleted file mode 100644
index a67b9ec1..00000000
--- a/devdocs/bash/simple-command-expansion.html
+++ /dev/null
@@ -1,10 +0,0 @@
-<h1 class="subsection">Simple Command Expansion</h1> <p>When a simple command is executed, the shell performs the following expansions, assignments, and redirections, from left to right, in the following order. </p> <ol> <li> The words that the parser has marked as variable assignments (those preceding the command name) and redirections are saved for later processing. </li>
-<li> The words that are not variable assignments or redirections are expanded (see <a href="shell-expansions">Shell Expansions</a>). If any words remain after expansion, the first word is taken to be the name of the command and the remaining words are the arguments. </li>
-<li> Redirections are performed as described above (see <a href="redirections">Redirections</a>). </li>
-<li> The text after the ‘<samp>=</samp>’ in each variable assignment undergoes tilde expansion, parameter expansion, command substitution, arithmetic expansion, and quote removal before being assigned to the variable. </li>
-</ol> <p>If no command name results, the variable assignments affect the current shell environment. In the case of such a command (one that consists only of assignment statements and redirections), assignment statements are performed before redirections. Otherwise, the variables are added to the environment of the executed command and do not affect the current shell environment. If any of the assignments attempts to assign a value to a readonly variable, an error occurs, and the command exits with a non-zero status. </p> <p>If no command name results, redirections are performed, but do not affect the current shell environment. A redirection error causes the command to exit with a non-zero status. </p> <p>If there is a command name left after expansion, execution proceeds as described below. Otherwise, the command exits. If one of the expansions contained a command substitution, the exit status of the command is the exit status of the last command substitution performed. If there were no command substitutions, the command exits with a status of zero. </p><div class="_attribution">
- <p class="_attribution-p">
- Copyright &copy; 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.<br>Licensed under the GNU Free Documentation License.<br>
- <a href="https://www.gnu.org/software/bash/manual/html_node/Simple-Command-Expansion.html" class="_attribution-link">https://www.gnu.org/software/bash/manual/html_node/Simple-Command-Expansion.html</a>
- </p>
-</div>