mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-27 07:43:07 +02:00
fix for EXIT trap in -c command; suspend -f now suspends even if job control is not enabled
This commit is contained in:
+26
-12
@@ -4,9 +4,9 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<!-- This text is a brief description of the features that are present in
|
||||
the Bash shell (version 5.2, 11 April 2022).
|
||||
the Bash shell (version 5.2, 17 May 2022).
|
||||
|
||||
This is Edition 5.2, last updated 11 April 2022,
|
||||
This is Edition 5.2, last updated 17 May 2022,
|
||||
of The GNU Bash Reference Manual,
|
||||
for Bash, Version 5.2.
|
||||
|
||||
@@ -77,10 +77,10 @@ Next: <a href="#Introduction" accesskey="n" rel="next">Introduction</a>, Previou
|
||||
<span id="Bash-Features-1"></span><h1 class="top">Bash Features</h1>
|
||||
|
||||
<p>This text is a brief description of the features that are present in
|
||||
the Bash shell (version 5.2, 11 April 2022).
|
||||
the Bash shell (version 5.2, 17 May 2022).
|
||||
The Bash home page is <a href="http://www.gnu.org/software/bash/">http://www.gnu.org/software/bash/</a>.
|
||||
</p>
|
||||
<p>This is Edition 5.2, last updated 11 April 2022,
|
||||
<p>This is Edition 5.2, last updated 17 May 2022,
|
||||
of <cite>The GNU Bash Reference Manual</cite>,
|
||||
for <code>Bash</code>, Version 5.2.
|
||||
</p>
|
||||
@@ -1104,7 +1104,9 @@ the time information.
|
||||
<p>If the pipeline is not executed asynchronously (see <a href="#Lists">Lists of Commands</a>), the
|
||||
shell waits for all commands in the pipeline to complete.
|
||||
</p>
|
||||
<p>Each command in a pipeline is executed in its own <em>subshell</em>, which is a
|
||||
<p>Each command in a multi-command pipeline,
|
||||
where pipes are created,
|
||||
is executed in its own <em>subshell</em>, which is a
|
||||
separate process (see <a href="#Command-Execution-Environment">Command Execution Environment</a>).
|
||||
If the <code>lastpipe</code> option is enabled using the <code>shopt</code> builtin
|
||||
(see <a href="#The-Shopt-Builtin">The Shopt Builtin</a>),
|
||||
@@ -3307,7 +3309,9 @@ then any character not enclosed is matched. A ‘<samp>-</samp>’
|
||||
may be matched by including it as the first or last character
|
||||
in the set. A ‘<samp>]</samp>’ may be matched by including it as the first
|
||||
character in the set.
|
||||
The sorting order of characters in range expressions is determined by
|
||||
The sorting order of characters in range expressions,
|
||||
and the characters included in the range,
|
||||
are determined by
|
||||
the current locale and the values of the
|
||||
<code>LC_COLLATE</code> and <code>LC_ALL</code> shell variables, if set.
|
||||
</p>
|
||||
@@ -7987,10 +7991,12 @@ No other startup files are read.
|
||||
<span id="Invoked-by-remote-shell-daemon"></span><h4 class="subsubheading">Invoked by remote shell daemon</h4>
|
||||
|
||||
<p>Bash attempts to determine when it is being run with its standard input
|
||||
connected to a network connection, as when executed by the remote shell
|
||||
daemon, usually <code>rshd</code>, or the secure shell daemon <code>sshd</code>.
|
||||
If Bash determines it is being run in
|
||||
this fashion, it reads and executes commands from <samp>~/.bashrc</samp>, if that
|
||||
connected to a network connection, as when executed by
|
||||
the historical remote shell daemon, usually <code>rshd</code>,
|
||||
or the secure shell daemon <code>sshd</code>.
|
||||
If Bash
|
||||
determines it is being run non-interactively in this fashion,
|
||||
it reads and executes commands from <samp>~/.bashrc</samp>, if that
|
||||
file exists and is readable.
|
||||
It will not do this if invoked as <code>sh</code>.
|
||||
The <samp>--norc</samp> option may be used to inhibit this behavior, and the
|
||||
@@ -9865,9 +9871,17 @@ argument restricts operation to running jobs.
|
||||
|
||||
<p>Suspend the execution of this shell until it receives a
|
||||
<code>SIGCONT</code> signal.
|
||||
A login shell cannot be suspended; the <samp>-f</samp>
|
||||
A login shell,
|
||||
or a shell without job control enabled,
|
||||
cannot be suspended; the <samp>-f</samp>
|
||||
option can be used to override this and force the suspension.
|
||||
</p></dd>
|
||||
The return status is 0 unless the shell is a login shell
|
||||
or job control is not enabled
|
||||
and
|
||||
<samp>-f</samp>
|
||||
is not supplied.
|
||||
</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p>When job control is not active, the <code>kill</code> and <code>wait</code>
|
||||
|
||||
Reference in New Issue
Block a user