summaryrefslogtreecommitdiff
path: root/doc/bash.1
diff options
context:
space:
mode:
authorChet Ramey <chet@caleb.ins.cwru.edu>2012-09-13 11:55:04 -0400
committerChet Ramey <chet@caleb.ins.cwru.edu>2012-09-13 11:55:04 -0400
commita7ad477fe7176dc712e9e7588e740ef3d886018c (patch)
tree19720323af8c7d75f04c1685ac61eda35507f715 /doc/bash.1
parentdf0e4bfe75a1a9d6feaf7c6104bbe6fca06c9383 (diff)
downloadbash-a7ad477fe7176dc712e9e7588e740ef3d886018c.tar.gz
commit bash-20120831 snapshot
Diffstat (limited to 'doc/bash.1')
-rw-r--r--doc/bash.136
1 files changed, 31 insertions, 5 deletions
diff --git a/doc/bash.1 b/doc/bash.1
index 2ef92ac6..380bff94 100644
--- a/doc/bash.1
+++ b/doc/bash.1
@@ -5,12 +5,12 @@
.\" Case Western Reserve University
.\" chet@po.cwru.edu
.\"
-.\" Last Change: Fri Aug 24 11:50:05 EDT 2012
+.\" Last Change: Tue Aug 28 17:20:54 EDT 2012
.\"
.\" bash_builtins, strip all but Built-Ins section
.if \n(zZ=1 .ig zZ
.if \n(zY=1 .ig zY
-.TH BASH 1 "2012 August 24" "GNU Bash 4.2"
+.TH BASH 1 "2012 August 28" "GNU Bash 4.2"
.\"
.\" There's some problem with having a `@'
.\" in a tagged paragraph with the BSD man macros.
@@ -1910,6 +1910,13 @@ A sample value is
.if t \f(CW".:~:/usr"\fP.
.if n ".:~:/usr".
.TP
+.B 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 Posix-mandated
+minimum, and there is a maximum value (currently 8192) that this may
+not exceed.
+The minimum value is system-dependent.
+.TP
.B COLUMNS
Used by the \fBselect\fP compound command to determine the terminal width
when printing selection lists. Automatically set in an interactive shell
@@ -2457,6 +2464,12 @@ This syntax is also accepted by the
.B declare
builtin. Individual array elements may be assigned to using the
\fIname\fP[\fIsubscript\fP]=\fIvalue\fP syntax introduced above.
+When assigning to an indexed array, if
+.I name
+is subscripted by a negative number, that number is
+interpreted as relative to one greater than the maximum index of
+\fIname\fP, so negative indices count back from the end of the
+array, and an index of \-1 references the last element.
.PP
Any element of an array may be referenced using
${\fIname\fP[\fIsubscript\fP]}. The braces are required to avoid
@@ -2487,9 +2500,10 @@ referencing the array with a subscript of 0.
If the
.I 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 references the last element.
.PP
An array variable is considered set if a subscript has been assigned a
value. The null string is a valid value.
@@ -2498,6 +2512,7 @@ The
.B unset
builtin is used to destroy arrays. \fBunset\fP \fIname\fP[\fIsubscript\fP]
destroys the array element at index \fIsubscript\fP.
+Negative subscripts to indexed arrays are interpreted as described above.
Care must be taken to avoid unwanted side effects caused by pathname
expansion.
\fBunset\fP \fIname\fP, where \fIname\fP is an array, or
@@ -2898,6 +2913,12 @@ is an array name subscripted by
or
.BR @ ,
the value substituted is the number of elements in the array.
+If
+.I 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
+\fIparameter\fP, so negative indices count back from the end of the
+array, and an index of \-1 references the last element.
.TP
${\fIparameter\fP\fB#\fP\fIword\fP}
.PD 0
@@ -5416,6 +5437,11 @@ possible partial completion (the possible completions don't share
a common prefix) cause the matches to be listed immediately instead
of ringing the bell.
.TP
+.B show\-mode\-in\-prompt (Off)
+If set to \fBOn\fP, add a character to the beginning of the prompt
+indicating the editing mode: emacs (@), vi command (:) or vi
+insertion (+).
+.TP
.B skip\-completed\-text (Off)
If set to \fBOn\fP, this alters the default completion behavior when
inserting a single match into the line. It's only active when