mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-13 23:20:49 +02:00
commit bash-20171027 snapshot
This commit is contained in:
+7
-8
@@ -5,12 +5,12 @@
|
||||
.\" Case Western Reserve University
|
||||
.\" chet.ramey@case.edu
|
||||
.\"
|
||||
.\" Last Change: Sat Oct 7 17:30:18 EDT 2017
|
||||
.\" Last Change: Fri Oct 27 14:15:26 EDT 2017
|
||||
.\"
|
||||
.\" bash_builtins, strip all but Built-Ins section
|
||||
.if \n(zZ=1 .ig zZ
|
||||
.if \n(zY=1 .ig zY
|
||||
.TH BASH 1 "2017 October 7" "GNU Bash 4.4"
|
||||
.TH BASH 1 "2017 October 27" "GNU Bash 4.4"
|
||||
.\"
|
||||
.\" There's some problem with having a `@'
|
||||
.\" in a tagged paragraph with the BSD man macros.
|
||||
@@ -2684,13 +2684,16 @@ builtin is used to destroy arrays. \fBunset\fP \fIname\fP[\fIsubscript\fP]
|
||||
destroys the array element at index \fIsubscript\fP,
|
||||
for both indexed and associative arrays.
|
||||
Negative subscripts to indexed arrays are interpreted as described above.
|
||||
Care must be taken to avoid unwanted side effects caused by pathname
|
||||
expansion.
|
||||
Unsetting the last element of an array variable does not unset the variable.
|
||||
\fBunset\fP \fIname\fP, where \fIname\fP is an array, or
|
||||
\fBunset\fP \fIname\fP[\fIsubscript\fP], where
|
||||
\fIsubscript\fP is \fB*\fP or \fB@\fP, removes the entire array.
|
||||
.PP
|
||||
When using a variable name with a subscript as an argument to a command,
|
||||
such as with \fBunset\fP, without using the word expansion syntax
|
||||
described above, the argument is subject to pathname expansion.
|
||||
If pathname expansion is not desired, the argument should be quoted.
|
||||
.PP
|
||||
The
|
||||
.BR declare ,
|
||||
.BR local ,
|
||||
@@ -4335,10 +4338,6 @@ A function definition may be deleted using the \fB\-f\fP option to
|
||||
the
|
||||
.B unset
|
||||
builtin.
|
||||
Note that shell functions and variables with the same name may result
|
||||
in multiple identically-named entries in the environment passed to the
|
||||
shell's children.
|
||||
Care should be taken in cases where this may cause a problem.
|
||||
.PP
|
||||
Functions may be recursive.
|
||||
The \fBFUNCNEST\fP variable may be used to limit the depth of the
|
||||
|
||||
+5
-6
@@ -1505,10 +1505,6 @@ Functions may be exported so that subshells
|
||||
automatically have them defined with the
|
||||
@option{-f} option to the @code{export} builtin
|
||||
(@pxref{Bourne Shell Builtins}).
|
||||
Note that shell functions and variables with the same name may result
|
||||
in multiple identically-named entries in the environment passed to the
|
||||
shell's children.
|
||||
Care should be taken in cases where this may cause a problem.
|
||||
|
||||
Functions may be recursive.
|
||||
The @code{FUNCNEST} variable may be used to limit the depth of the
|
||||
@@ -7183,13 +7179,16 @@ The @code{unset} builtin is used to destroy arrays.
|
||||
@code{unset @var{name}[@var{subscript}]}
|
||||
destroys the array element at index @var{subscript}.
|
||||
Negative subscripts to indexed arrays are interpreted as described above.
|
||||
Care must be taken to avoid unwanted side effects caused by filename
|
||||
expansion.
|
||||
Unsetting the last element of an array variable does not unset the variable.
|
||||
@code{unset @var{name}}, where @var{name} is an array, removes the
|
||||
entire array. A subscript of @samp{*} or @samp{@@} also removes the
|
||||
entire array.
|
||||
|
||||
When using a variable name with a subscript as an argument to a command,
|
||||
such as with @code{unset}, without using the word expansion syntax
|
||||
described above, the argument is subject to the shell's filename expansion.
|
||||
If filename expansion is not desired, the argument should be quoted.
|
||||
|
||||
The @code{declare}, @code{local}, and @code{readonly}
|
||||
builtins each accept a @option{-a} option to specify an indexed
|
||||
array and a @option{-A} option to specify an associative array.
|
||||
|
||||
+2
-2
@@ -2,10 +2,10 @@
|
||||
Copyright (C) 1988-2017 Free Software Foundation, Inc.
|
||||
@end ignore
|
||||
|
||||
@set LASTCHANGE Sat Oct 7 17:29:58 EDT 2017
|
||||
@set LASTCHANGE Fri Oct 27 14:15:11 EDT 2017
|
||||
|
||||
@set EDITION 4.4
|
||||
@set VERSION 4.4
|
||||
|
||||
@set UPDATED 7 October 2017
|
||||
@set UPDATED 27 October 2017
|
||||
@set UPDATED-MONTH October 2017
|
||||
|
||||
Reference in New Issue
Block a user