summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2011-12-07 09:01:16 -0500
committerChet Ramey <chet.ramey@case.edu>2011-12-07 09:01:16 -0500
commit10a5f6b4cc41a4cff0d37768f7f45be657056c7b (patch)
tree460df9112785c8a57ef4afd8d1a42bbba60b7386 /doc
parent39393a5bd6ff3025d21fc6c7a8779c811601fc26 (diff)
downloadbash-10a5f6b4cc41a4cff0d37768f7f45be657056c7b.tar.gz
commit bash-20061206 snapshot
Diffstat (limited to 'doc')
-rw-r--r--doc/bash.115
-rw-r--r--doc/bashref.texi9
2 files changed, 16 insertions, 8 deletions
diff --git a/doc/bash.1 b/doc/bash.1
index bd29b8aa..bbf08ed9 100644
--- a/doc/bash.1
+++ b/doc/bash.1
@@ -5985,8 +5985,9 @@ no alias has been defined.
Resume each suspended job \fIjobspec\fP in the background, as if it
had been started with
.BR & .
-If \fIjobspec\fP is not present, the shell's notion of the
-\fIcurrent job\fP is used.
+If
+.I jobspec
+is not present, the shell's notion of the \fIcurrent job\fP is used.
.B bg
.I jobspec
returns 0 unless run when job control is disabled or, when run with
@@ -6572,6 +6573,10 @@ of the directory stack.
Without options, each
.I jobspec
is removed from the table of active jobs.
+If
+.I jobspec
+is not present, and neither \fB\-a\fB nor \fB\-r\fP is supplied,
+the shell's notion of the \fIcurrent job\fP is used.
If the \fB\-h\fP option is given, each
.I jobspec
is not removed from the table, but is marked so that
@@ -7587,12 +7592,14 @@ or
.B until
keyword,
part of the test in an
-.I if
+.B if
statement, part of a
.B &&
or
.B \(bv\(bv
-list, or if the command's return value is
+list,
+any command in a pipeline but the last,
+or if the command's return value is
being inverted via
.BR ! .
A trap on \fBERR\fP, if set, is executed before the shell exits.
diff --git a/doc/bashref.texi b/doc/bashref.texi
index 2460df76..f0b39afa 100644
--- a/doc/bashref.texi
+++ b/doc/bashref.texi
@@ -3967,10 +3967,11 @@ immediately, rather than before printing the next primary prompt.
@item -e
Exit immediately if a simple command (@pxref{Simple Commands}) exits
with a non-zero status, unless the command that fails is part of the
-command list immediately following a @code{while} or @code{until}
-keyword, part of the test in an @code{if} statement,
-part of a @code{&&} or @code{||} list, or if the command's return
-status is being inverted using @code{!}.
+command list immediately following a @code{while} or @code{until} keyword,
+part of the test in an @code{if} statement,
+part of a @code{&&} or @code{||} list,
+any command in a pipeline but the last,
+or if the command's return status is being inverted using @code{!}.
A trap on @code{ERR}, if set, is executed before the shell exits.
@item -f