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-expansions.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 devdocs/bash/shell-expansions.html (limited to 'devdocs/bash/shell-expansions.html') diff --git a/devdocs/bash/shell-expansions.html b/devdocs/bash/shell-expansions.html new file mode 100644 index 00000000..455757dd --- /dev/null +++ b/devdocs/bash/shell-expansions.html @@ -0,0 +1,13 @@ +

Shell Expansions

Expansion is performed on the command line after it has been split into tokens. There are seven kinds of expansion performed:

The order of expansions is: brace expansion; tilde expansion, parameter and variable expansion, arithmetic expansion, and command substitution (done in a left-to-right fashion); word splitting; and filename expansion.

On systems that can support it, there is an additional expansion available: process substitution. This is performed at the same time as tilde, parameter, variable, and arithmetic expansion and command substitution.

After these expansions are performed, quote characters present in the original word are removed unless they have been quoted themselves (quote removal).

Only brace expansion, word splitting, and filename expansion can increase the number of words of the expansion; other expansions expand a single word to a single word. The only exceptions to this are the expansions of "$@" and $* (see Special Parameters), and "${name[@]}" and ${name[*]} (see Arrays).

After all expansions, quote removal (see Quote Removal) is performed.

+

+ 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-Expansions.html +

+
-- cgit v1.2.3