mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-08 03:02:40 +02:00
documentation updates for arrayname[0]; update trace/debug order for some compound commands
This commit is contained in:
+9
-1
@@ -2864,7 +2864,9 @@ Any element of an array may be referenced using
|
||||
${\fIname\fP[\fIsubscript\fP]}. The braces are required to avoid
|
||||
conflicts with pathname expansion. If
|
||||
\fIsubscript\fP is \fB@\fP or \fB*\fP, the word expands to
|
||||
all members of \fIname\fP. These subscripts differ only when the
|
||||
all members of \fIname\fP,
|
||||
unless noted in the description of a builtin or word expansion.
|
||||
These subscripts differ only when the
|
||||
word appears within double quotes. If the word is double-quoted,
|
||||
${\fIname\fP[*]} expands to a single
|
||||
word with the value of each array member separated by the first
|
||||
@@ -4978,6 +4980,12 @@ builtin below.
|
||||
True if the shell variable
|
||||
.I varname
|
||||
is set (has been assigned a value).
|
||||
If \fIvarname\fP is an indexed
|
||||
array variable name subscripted by \fI@\fP or \fI*\fP,
|
||||
this returns true if the array has any set elements.
|
||||
If \fIvarname\fP is an associative
|
||||
array variable name subscripted by \fI@\fP or \fI*\fP,
|
||||
this returns true if an element with that key is set.
|
||||
.TP
|
||||
.B \-R \fIvarname\fP
|
||||
True if the shell variable
|
||||
|
||||
+10
-2
@@ -1759,7 +1759,7 @@ When @samp{+=} is applied to an array variable using compound assignment
|
||||
(@pxref{Arrays}), the
|
||||
variable's value is not unset (as it is when using @samp{=}), and new
|
||||
values are appended to the array beginning at one greater than the array's
|
||||
maximum index (for indexed arrays), or added as additional key-value pairs
|
||||
maximum index (for indexed arrays), or added as additional key-value pairs
|
||||
in an associative array.
|
||||
When applied to a string-valued variable, @var{value} is expanded and
|
||||
appended to the variable's value.
|
||||
@@ -7664,6 +7664,12 @@ option to the @code{set} builtin (@pxref{The Set Builtin}).
|
||||
|
||||
@item -v @var{varname}
|
||||
True if the shell variable @var{varname} is set (has been assigned a value).
|
||||
If @var{varname} is an indexed
|
||||
array variable name subscripted by @samp{@@} or @samp{*},
|
||||
this returns true if the array has any set elements.
|
||||
If @var{varname} is an associative
|
||||
array variable name subscripted by @samp{@@} or @samp{*},
|
||||
this returns true if an element with that key is set.
|
||||
|
||||
@item -R @var{varname}
|
||||
True if the shell variable @var{varname} is set and is a name reference.
|
||||
@@ -7983,7 +7989,9 @@ Any element of an array may be referenced using
|
||||
The braces are required to avoid
|
||||
conflicts with the shell's filename expansion operators. If the
|
||||
@var{subscript} is @samp{@@} or @samp{*}, the word expands to all members
|
||||
of the array @var{name}. These subscripts differ only when the word
|
||||
of the array @var{name}, unless otherwise noted in the description of a
|
||||
builtin or word expansion.
|
||||
These subscripts differ only when the word
|
||||
appears within double quotes.
|
||||
If the word is double-quoted,
|
||||
@code{$@{@var{name}[*]@}} expands to a single word with
|
||||
|
||||
+2
-2
@@ -2,10 +2,10 @@
|
||||
Copyright (C) 1988-2023 Free Software Foundation, Inc.
|
||||
@end ignore
|
||||
|
||||
@set LASTCHANGE Tue Aug 15 16:02:41 EDT 2023
|
||||
@set LASTCHANGE Fri Aug 25 11:58:00 EDT 2023
|
||||
|
||||
@set EDITION 5.3
|
||||
@set VERSION 5.3
|
||||
|
||||
@set UPDATED 15 August 2023
|
||||
@set UPDATED 25 August 2023
|
||||
@set UPDATED-MONTH August 2023
|
||||
|
||||
Reference in New Issue
Block a user