diff options
| author | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
| commit | 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch) | |
| tree | f1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/bash/reserved-words.html | |
new repository
Diffstat (limited to 'devdocs/bash/reserved-words.html')
| -rw-r--r-- | devdocs/bash/reserved-words.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/devdocs/bash/reserved-words.html b/devdocs/bash/reserved-words.html new file mode 100644 index 00000000..94435c30 --- /dev/null +++ b/devdocs/bash/reserved-words.html @@ -0,0 +1,32 @@ +<h1 class="subsection">Reserved Words</h1> <p>Reserved words are words that have special meaning to the shell. They are used to begin and end the shell’s compound commands. </p> <p>The following words are recognized as reserved when unquoted and the first word of a command (see below for exceptions): </p> <table> <tr> +<td width="10%"><code>if</code></td> +<td width="10%"><code>then</code></td> +<td width="10%"><code>elif</code></td> +<td width="10%"><code>else</code></td> +<td width="12%"><code>fi</code></td> +<td width="10%"><code>time</code></td> +</tr> <tr> +<td width="10%"><code>for</code></td> +<td width="10%"><code>in</code></td> +<td width="10%"><code>until</code></td> +<td width="10%"><code>while</code></td> +<td width="12%"><code>do</code></td> +<td width="10%"><code>done</code></td> +</tr> <tr> +<td width="10%"><code>case</code></td> +<td width="10%"><code>esac</code></td> +<td width="10%"><code>coproc</code></td> +<td width="10%"><code>select</code></td> +<td width="12%"><code>function</code></td> +</tr> <tr> +<td width="10%"><code>{</code></td> +<td width="10%"><code>}</code></td> +<td width="10%"><code>[[</code></td> +<td width="10%"><code>]]</code></td> +<td width="12%"><code>!</code></td> +</tr> </table> <p><code>in</code> is recognized as a reserved word if it is the third word of a <code>case</code> or <code>select</code> command. <code>in</code> and <code>do</code> are recognized as reserved words if they are the third word in a <code>for</code> command. </p><div class="_attribution"> + <p class="_attribution-p"> + Copyright © 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/Reserved-Words.html" class="_attribution-link">https://www.gnu.org/software/bash/manual/html_node/Reserved-Words.html</a> + </p> +</div> |
