mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-01 09:29:51 +02:00
commit bash-20140321 snapshot
This commit is contained in:
+1745
File diff suppressed because it is too large
Load Diff
+12
-6
@@ -5,12 +5,12 @@
|
||||
.\" Case Western Reserve University
|
||||
.\" chet.ramey@case.edu
|
||||
.\"
|
||||
.\" Last Change: Wed Mar 12 09:29:03 EDT 2014
|
||||
.\" Last Change: Tue Mar 18 16:26:29 EDT 2014
|
||||
.\"
|
||||
.\" bash_builtins, strip all but Built-Ins section
|
||||
.if \n(zZ=1 .ig zZ
|
||||
.if \n(zY=1 .ig zY
|
||||
.TH BASH 1 "2014 March 12" "GNU Bash 4.3"
|
||||
.TH BASH 1 "2014 March 18" "GNU Bash 4.3"
|
||||
.\"
|
||||
.\" There's some problem with having a `@'
|
||||
.\" in a tagged paragraph with the BSD man macros.
|
||||
@@ -3963,7 +3963,7 @@ on that line are not affected by the new alias.
|
||||
This behavior is also an issue when functions are executed.
|
||||
Aliases are expanded when a function definition is read,
|
||||
not when the function is executed, because a function definition
|
||||
is itself a compound command. As a consequence, aliases
|
||||
is itself a command. As a consequence, aliases
|
||||
defined in a function are not available until after that
|
||||
function is executed. To be safe, always put
|
||||
alias definitions on a separate line, and do not use
|
||||
@@ -8727,7 +8727,13 @@ to its caller.
|
||||
If
|
||||
.I n
|
||||
is omitted, the return status is that of the last command
|
||||
executed in the function body. If
|
||||
executed in the function body.
|
||||
If \fBreturn\fP is executed by a trap handler, the last command used to
|
||||
determine the status is the last command executed before the trap handler.
|
||||
if \fBreturn\fP is executed during a \fBDEBUG\fP trap, the last command
|
||||
used to determine the status is the last command executed by the trap
|
||||
handler before \fBreturn\fP was invoked.
|
||||
If
|
||||
.B return
|
||||
is used outside a function,
|
||||
but during execution of a script by the
|
||||
@@ -9371,8 +9377,8 @@ next command is skipped and not executed.
|
||||
.B 3.
|
||||
If the command run by the \fBDEBUG\fP trap returns a value of 2, and the
|
||||
shell is executing in a subroutine (a shell function or a shell script
|
||||
executed by the \fB.\fP or \fBsource\fP builtins), a call to
|
||||
\fBreturn\fP is simulated.
|
||||
executed by the \fB.\fP or \fBsource\fP builtins), the shell simulates
|
||||
a call to \fBreturn\fP.
|
||||
.TP
|
||||
.B 4.
|
||||
.SM
|
||||
|
||||
+10
-5
@@ -603,8 +603,8 @@ the command was terminated by signal @var{n}.
|
||||
@cindex pipeline
|
||||
@cindex commands, pipelines
|
||||
|
||||
A @code{pipeline} is a sequence of simple commands separated by one of
|
||||
the control operators @samp{|} or @samp{|&}.
|
||||
A @code{pipeline} is a sequence of one or more commands separated by
|
||||
one of the control operators @samp{|} or @samp{|&}.
|
||||
|
||||
@rwindex time
|
||||
@rwindex !
|
||||
@@ -3502,6 +3502,11 @@ Cause a shell function to stop executing and return the value @var{n}
|
||||
to its caller.
|
||||
If @var{n} is not supplied, the return value is the exit status of the
|
||||
last command executed in the function.
|
||||
If @code{return} is executed by a trap handler, the last command used to
|
||||
determine the status is the last command executed before the trap handler.
|
||||
if @code{return} is executed during a @code{DEBUG} trap, the last command
|
||||
used to determine the status is the last command executed by the trap
|
||||
handler before @code{return} was invoked.
|
||||
@code{return} may also be used to terminate execution of a script
|
||||
being executed with the @code{.} (@code{source}) builtin,
|
||||
returning either @var{n} or
|
||||
@@ -5038,8 +5043,8 @@ next command is skipped and not executed.
|
||||
@item
|
||||
If the command run by the @code{DEBUG} trap returns a value of 2, and the
|
||||
shell is executing in a subroutine (a shell function or a shell script
|
||||
executed by the @code{.} or @code{source} builtins), a call to
|
||||
@code{return} is simulated.
|
||||
executed by the @code{.} or @code{source} builtins), the shell simulates
|
||||
a call to @code{return}.
|
||||
|
||||
@item
|
||||
@code{BASH_ARGC} and @code{BASH_ARGV} are updated as described in their
|
||||
@@ -6731,7 +6736,7 @@ on that line are not affected by the new alias.
|
||||
This behavior is also an issue when functions are executed.
|
||||
Aliases are expanded when a function definition is read,
|
||||
not when the function is executed, because a function definition
|
||||
is itself a compound command. As a consequence, aliases
|
||||
is itself a command. As a consequence, aliases
|
||||
defined in a function are not available until after that
|
||||
function is executed. To be safe, always put
|
||||
alias definitions on a separate line, and do not use @code{alias}
|
||||
|
||||
+2
-2
@@ -2,9 +2,9 @@
|
||||
Copyright (C) 1988-2014 Free Software Foundation, Inc.
|
||||
@end ignore
|
||||
|
||||
@set LASTCHANGE Wed Mar 12 09:28:39 EDT 2014
|
||||
@set LASTCHANGE Tue Mar 18 16:26:13 EDT 2014
|
||||
|
||||
@set EDITION 4.3
|
||||
@set VERSION 4.3
|
||||
@set UPDATED 12 March 2014
|
||||
@set UPDATED 18 March 2014
|
||||
@set UPDATED-MONTH March 2014
|
||||
|
||||
Reference in New Issue
Block a user