mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-07 10:42:28 +02:00
commit bash-20120831 snapshot
This commit is contained in:
+25
-5
@@ -2034,6 +2034,11 @@ If @var{parameter} is @samp{*} or @samp{@@}, the value substituted
|
||||
is the number of positional parameters.
|
||||
If @var{parameter} is an array name subscripted by @samp{*} or @samp{@@},
|
||||
the value substituted is the number of elements in the array.
|
||||
If @var{parameter}
|
||||
is an indexed array name subscripted by a negative number, that number is
|
||||
interpreted as relative to one greater than the maximum index of
|
||||
@var{parameter}, so negative indices count back from the end of the
|
||||
array, and an index of -1 references the last element.
|
||||
|
||||
@item $@{@var{parameter}#@var{word}@}
|
||||
@itemx $@{@var{parameter}##@var{word}@}
|
||||
@@ -5365,6 +5370,13 @@ Note that setting @code{BASH_XTRACEFD} to 2 (the standard error file
|
||||
descriptor) and then unsetting it will result in the standard error
|
||||
being closed.
|
||||
|
||||
@item CHILD_MAX
|
||||
Set the number of exited child status values for the shell to remember.
|
||||
Bash will not allow this value to be decreased below a @sc{posix}-mandated
|
||||
minimum, and there is a maximum value (currently 8192) that this may
|
||||
not exceed.
|
||||
The minimum value is system-dependent.
|
||||
|
||||
@item COLUMNS
|
||||
Used by the @code{select} command to determine the terminal width
|
||||
when printing selection lists. Automatically set by an interactive shell
|
||||
@@ -6677,6 +6689,12 @@ This syntax is also accepted by the @code{declare}
|
||||
builtin. Individual array elements may be assigned to using the
|
||||
@code{@var{name}[@var{subscript}]=@var{value}} syntax introduced above.
|
||||
|
||||
When assigning to an indexed array, if @var{name}
|
||||
is subscripted by a negative number, that number is
|
||||
interpreted as relative to one greater than the maximum index of
|
||||
@var{name}, so negative indices count back from the end of the
|
||||
array, and an index of -1 references the last element.
|
||||
|
||||
Any element of an array may be referenced using
|
||||
@code{$@{@var{name}[@var{subscript}]@}}.
|
||||
The braces are required to avoid
|
||||
@@ -6704,9 +6722,10 @@ Referencing an array variable without a subscript is equivalent to
|
||||
referencing with a subscript of 0.
|
||||
If the @var{subscript}
|
||||
used to reference an element of an indexed array
|
||||
evaluates to a number less than zero, it is used as
|
||||
an offset from one greater than the array's maximum index (so a subcript
|
||||
of -1 refers to the last element of the array).
|
||||
evaluates to a number less than zero, it is
|
||||
interpreted as relative to one greater than the maximum index of the array,
|
||||
so negative indices count back from the end of the array,
|
||||
and an index of -1 refers to the last element.
|
||||
|
||||
An array variable is considered set if a subscript has been assigned a
|
||||
value. The null string is a valid value.
|
||||
@@ -6714,6 +6733,7 @@ value. The null string is a valid value.
|
||||
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.
|
||||
@code{unset @var{name}}, where @var{name} is an array, removes the
|
||||
@@ -7644,9 +7664,9 @@ to do them, and mail diffs or instructions to
|
||||
@email{bash-maintainers@@gnu.org} so they can be
|
||||
considered for the next release.
|
||||
|
||||
The file @file{configure.in} is used to create @code{configure}
|
||||
The file @file{configure.ac} is used to create @code{configure}
|
||||
by a program called Autoconf. You only need
|
||||
@file{configure.in} if you want to change it or regenerate
|
||||
@file{configure.ac} if you want to change it or regenerate
|
||||
@code{configure} using a newer version of Autoconf. If
|
||||
you do this, make sure you are using Autoconf version 2.50 or
|
||||
newer.
|
||||
|
||||
Reference in New Issue
Block a user