mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-04 10:50:50 +02:00
commit bash-20200501 snapshot
This commit is contained in:
+14
-5
@@ -5,12 +5,12 @@
|
||||
.\" Case Western Reserve University
|
||||
.\" chet.ramey@case.edu
|
||||
.\"
|
||||
.\" Last Change: Fri Apr 17 16:30:01 EDT 2020
|
||||
.\" Last Change: Thu Apr 30 18:20:53 EDT 2020
|
||||
.\"
|
||||
.\" bash_builtins, strip all but Built-Ins section
|
||||
.if \n(zZ=1 .ig zZ
|
||||
.if \n(zY=1 .ig zY
|
||||
.TH BASH 1 "2020 April 17" "GNU Bash 5.0"
|
||||
.TH BASH 1 "2020 April 30" "GNU Bash 5.0"
|
||||
.\"
|
||||
.\" There's some problem with having a `@'
|
||||
.\" in a tagged paragraph with the BSD man macros.
|
||||
@@ -493,14 +493,17 @@ symbols:
|
||||
.SH "RESERVED WORDS"
|
||||
\fIReserved words\fP are words that have a special meaning to the shell.
|
||||
The following words are recognized as reserved when unquoted and either
|
||||
the first word of a simple command (see
|
||||
the first word of a command (see
|
||||
.SM
|
||||
.B SHELL GRAMMAR
|
||||
below) or the third word of a
|
||||
below), the third word of a
|
||||
.B case
|
||||
or
|
||||
.B select
|
||||
command
|
||||
(only \fBin\fP is valid), or the third word of a
|
||||
.B for
|
||||
command:
|
||||
command (only \fBin\fP and \fBdo\fP are valid):
|
||||
.if t .RS
|
||||
.PP
|
||||
.B
|
||||
@@ -10915,6 +10918,8 @@ setting or unsetting the values of
|
||||
.SM
|
||||
.BR PATH ,
|
||||
.SM
|
||||
.BR HISTFILE ,
|
||||
.SM
|
||||
.BR ENV ,
|
||||
or
|
||||
.SM
|
||||
@@ -10930,6 +10935,10 @@ as an argument to the
|
||||
builtin command
|
||||
.IP \(bu
|
||||
specifying a filename containing a slash as an argument to the
|
||||
.B history
|
||||
builtin command
|
||||
.IP \(bu
|
||||
specifying a filename containing a slash as an argument to the
|
||||
.B \-p
|
||||
option to the
|
||||
.B hash
|
||||
|
||||
@@ -580,6 +580,7 @@ becomes the input of a second, in a loop or conditional construct, or in
|
||||
some other grouping.
|
||||
|
||||
@menu
|
||||
* Reserved Words:: Words that have special meaning to the shell.
|
||||
* Simple Commands:: The most common type of command.
|
||||
* Pipelines:: Connecting the input and output of several
|
||||
commands.
|
||||
@@ -589,6 +590,32 @@ some other grouping.
|
||||
* GNU Parallel:: Running commands in parallel.
|
||||
@end menu
|
||||
|
||||
@node Reserved Words
|
||||
@subsection Reserved Words
|
||||
@cindex reserved words
|
||||
|
||||
Reserved words are words that have special meaning to the shell.
|
||||
They are used to begin and end the shell's compound commands.
|
||||
|
||||
The following words are recognized as reserved when unquoted and
|
||||
the first word of a command (see below for exceptions):
|
||||
|
||||
@multitable @columnfractions .1 .1 .1 .1 .12 .1
|
||||
@item @code{if} @tab @code{then} @tab @code{elif}
|
||||
@tab @code{else} @tab @code{fi} @tab @code{time}
|
||||
@item @code{for} @tab @code{in} @tab @code{until}
|
||||
@tab @code{while} @tab @code{do} @tab @code{done}
|
||||
@item @code{case} @tab @code{esac} @tab @code{coproc}
|
||||
@tab @code{select} @tab @code{function}
|
||||
@item @code{@{} @tab @code{@}} @tab @code{[[} @tab @code{]]} @tab @code{!}
|
||||
@end multitable
|
||||
|
||||
@noindent
|
||||
@code{in} is recognized as a reserved word if it is the third word of a
|
||||
@code{case} or @code{select} command.
|
||||
@code{in} and @code{do} are recognized as reserved
|
||||
words if they are the third word in a @code{for} command.
|
||||
|
||||
@node Simple Commands
|
||||
@subsection Simple Commands
|
||||
@cindex commands, simple
|
||||
@@ -7628,6 +7655,7 @@ with the exception that the following are disallowed or not performed:
|
||||
Changing directories with the @code{cd} builtin.
|
||||
@item
|
||||
Setting or unsetting the values of the @env{SHELL}, @env{PATH},
|
||||
@env{HISTFILE},
|
||||
@env{ENV}, or @env{BASH_ENV} variables.
|
||||
@item
|
||||
Specifying command names containing slashes.
|
||||
@@ -7635,6 +7663,9 @@ Specifying command names containing slashes.
|
||||
Specifying a filename containing a slash as an argument to the @code{.}
|
||||
builtin command.
|
||||
@item
|
||||
Specifying a filename containing a slash as an argument to the @code{history}
|
||||
builtin command.
|
||||
@item
|
||||
Specifying a filename containing a slash as an argument to the @option{-p}
|
||||
option to the @code{hash} builtin command.
|
||||
@item
|
||||
|
||||
+2
-2
@@ -2,10 +2,10 @@
|
||||
Copyright (C) 1988-2020 Free Software Foundation, Inc.
|
||||
@end ignore
|
||||
|
||||
@set LASTCHANGE Fri Apr 17 16:30:16 EDT 2020
|
||||
@set LASTCHANGE Thu Apr 30 18:20:35 EDT 2020
|
||||
|
||||
@set EDITION 5.0
|
||||
@set VERSION 5.0
|
||||
|
||||
@set UPDATED 17 April 2020
|
||||
@set UPDATED 30 April 2020
|
||||
@set UPDATED-MONTH April 2020
|
||||
|
||||
Reference in New Issue
Block a user