mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-06 11:50:49 +02:00
commit bash-20140625 snapshot
This commit is contained in:
+8
-3
@@ -1483,7 +1483,7 @@ Filename expansion is not performed.
|
||||
Assignment statements may also appear as arguments to the
|
||||
@code{alias},
|
||||
@code{declare}, @code{typeset}, @code{export}, @code{readonly},
|
||||
and @code{local} builtin commands.
|
||||
and @code{local} builtin commands (@var{declaration} commands).
|
||||
When in @sc{posix} mode (@pxref{Bash POSIX Mode}), these builtins may appear
|
||||
in a command after one or more instances of the @code{command} builtin
|
||||
and retain these assignment statement properties.
|
||||
@@ -1492,6 +1492,8 @@ In the context where an assignment statement is assigning a value
|
||||
to a shell variable or array index (@pxref{Arrays}), the @samp{+=}
|
||||
operator can be used to
|
||||
append to or add to the variable's previous value.
|
||||
This includes arguments to builtin commands such as @code{declare} that
|
||||
accept assignment statements (@var{declaration} commands).
|
||||
When @samp{+=} is applied to a variable for which the @var{integer} attribute
|
||||
has been set, @var{value} is evaluated as an arithmetic expression and
|
||||
added to the variable's current value, which is also evaluated.
|
||||
@@ -4180,7 +4182,7 @@ parent.
|
||||
@item mapfile
|
||||
@btindex mapfile
|
||||
@example
|
||||
mapfile [-n @var{count}] [-O @var{origin}] [-s @var{count}] [-t] [-u @var{fd}]
|
||||
mapfile [-d @var{delim}] [-n @var{count}] [-O @var{origin}] [-s @var{count}] [-t] [-u @var{fd}]
|
||||
[-C @var{callback}] [-c @var{quantum}] [@var{array}]
|
||||
@end example
|
||||
|
||||
@@ -4192,6 +4194,9 @@ Options, if supplied, have the following meanings:
|
||||
|
||||
@table @code
|
||||
|
||||
@item -d
|
||||
The first character of @var{delim} is used to terminate each input line,
|
||||
rather than newline.
|
||||
@item -n
|
||||
Copy at most @var{count} lines. If @var{count} is 0, all lines are copied.
|
||||
@item -O
|
||||
@@ -4376,7 +4381,7 @@ Read input from file descriptor @var{fd}.
|
||||
@item readarray
|
||||
@btindex readarray
|
||||
@example
|
||||
readarray [-n @var{count}] [-O @var{origin}] [-s @var{count}] [-t] [-u @var{fd}]
|
||||
readarray [-d @var{delim}] [-n @var{count}] [-O @var{origin}] [-s @var{count}] [-t] [-u @var{fd}]
|
||||
[-C @var{callback}] [-c @var{quantum}] [@var{array}]
|
||||
@end example
|
||||
|
||||
|
||||
Reference in New Issue
Block a user