mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-30 08:59:56 +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:
+160
-154
@@ -2,9 +2,9 @@ This is bashref.info, produced by makeinfo version 6.8 from
|
||||
bashref.texi.
|
||||
|
||||
This text is a brief description of the features that are present in the
|
||||
Bash shell (version 5.2, 11 April 2022).
|
||||
Bash shell (version 5.2, 17 May 2022).
|
||||
|
||||
This is Edition 5.2, last updated 11 April 2022, of 'The GNU Bash
|
||||
This is Edition 5.2, last updated 17 May 2022, of 'The GNU Bash
|
||||
Reference Manual', for 'Bash', Version 5.2.
|
||||
|
||||
Copyright (C) 1988-2022 Free Software Foundation, Inc.
|
||||
@@ -27,10 +27,10 @@ Bash Features
|
||||
*************
|
||||
|
||||
This text is a brief description of the features that are present in the
|
||||
Bash shell (version 5.2, 11 April 2022). The Bash home page is
|
||||
Bash shell (version 5.2, 17 May 2022). The Bash home page is
|
||||
<http://www.gnu.org/software/bash/>.
|
||||
|
||||
This is Edition 5.2, last updated 11 April 2022, of 'The GNU Bash
|
||||
This is Edition 5.2, last updated 17 May 2022, of 'The GNU Bash
|
||||
Reference Manual', for 'Bash', Version 5.2.
|
||||
|
||||
Bash contains features that appear in other popular shells, and some
|
||||
@@ -705,11 +705,12 @@ information.
|
||||
If the pipeline is not executed asynchronously (*note Lists::), the
|
||||
shell waits for all commands in the pipeline to complete.
|
||||
|
||||
Each command in a pipeline is executed in its own "subshell", which
|
||||
is a separate process (*note Command Execution Environment::). If the
|
||||
'lastpipe' option is enabled using the 'shopt' builtin (*note The Shopt
|
||||
Builtin::), the last element of a pipeline may be run by the shell
|
||||
process when job control is not active.
|
||||
Each command in a multi-command pipeline, where pipes are created, is
|
||||
executed in its own "subshell", which is a separate process (*note
|
||||
Command Execution Environment::). If the 'lastpipe' option is enabled
|
||||
using the 'shopt' builtin (*note The Shopt Builtin::), the last element
|
||||
of a pipeline may be run by the shell process when job control is not
|
||||
active.
|
||||
|
||||
The exit status of a pipeline is the exit status of the last command
|
||||
in the pipeline, unless the 'pipefail' option is enabled (*note The Set
|
||||
@@ -2432,9 +2433,10 @@ characters must be quoted if they are to be matched literally.
|
||||
character not enclosed is matched. A '-' may be matched by
|
||||
including it as the first or last character in the set. A ']' 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 current locale and the values of the 'LC_COLLATE' and 'LC_ALL'
|
||||
shell variables, if set.
|
||||
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 'LC_COLLATE' and 'LC_ALL' shell
|
||||
variables, if set.
|
||||
|
||||
For example, in the default C locale, '[a-dx-z]' is equivalent to
|
||||
'[abcdxyz]'. Many locales sort characters in dictionary order, and
|
||||
@@ -6147,14 +6149,15 @@ Invoked by remote shell daemon
|
||||
..............................
|
||||
|
||||
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 'rshd', or the secure shell daemon 'sshd'. If Bash
|
||||
determines it is being run in this fashion, it reads and executes
|
||||
commands from '~/.bashrc', if that file exists and is readable. It will
|
||||
not do this if invoked as 'sh'. The '--norc' option may be used to
|
||||
inhibit this behavior, and the '--rcfile' option may be used to force
|
||||
another file to be read, but neither 'rshd' nor 'sshd' generally invoke
|
||||
the shell with those options or allow them to be specified.
|
||||
connected to a network connection, as when executed by the historical
|
||||
remote shell daemon, usually 'rshd', or the secure shell daemon 'sshd'.
|
||||
If Bash determines it is being run non-interactively in this fashion, it
|
||||
reads and executes commands from '~/.bashrc', if that file exists and is
|
||||
readable. It will not do this if invoked as 'sh'. The '--norc' option
|
||||
may be used to inhibit this behavior, and the '--rcfile' option may be
|
||||
used to force another file to be read, but neither 'rshd' nor 'sshd'
|
||||
generally invoke the shell with those options or allow them to be
|
||||
specified.
|
||||
|
||||
Invoked with unequal effective and real UID/GIDs
|
||||
................................................
|
||||
@@ -7651,8 +7654,11 @@ File: bashref.info, Node: Job Control Builtins, Next: Job Control Variables,
|
||||
suspend [-f]
|
||||
|
||||
Suspend the execution of this shell until it receives a 'SIGCONT'
|
||||
signal. A login shell cannot be suspended; the '-f' option can be
|
||||
used to override this and force the suspension.
|
||||
signal. A login shell, or a shell without job control enabled,
|
||||
cannot be suspended; the '-f' option can be used to override this
|
||||
and force the suspension. The return status is 0 unless the shell
|
||||
is a login shell or job control is not enabled and '-f' is not
|
||||
supplied.
|
||||
|
||||
When job control is not active, the 'kill' and 'wait' builtins do not
|
||||
accept JOBSPEC arguments. They must be supplied process IDs.
|
||||
@@ -12500,138 +12506,138 @@ D.5 Concept Index
|
||||
|
||||
|
||||
Tag Table:
|
||||
Node: Top891
|
||||
Node: Introduction2805
|
||||
Node: What is Bash?3021
|
||||
Node: What is a shell?4135
|
||||
Node: Definitions6673
|
||||
Node: Basic Shell Features9624
|
||||
Node: Shell Syntax10843
|
||||
Node: Shell Operation11869
|
||||
Node: Quoting13162
|
||||
Node: Escape Character14466
|
||||
Node: Single Quotes14951
|
||||
Node: Double Quotes15299
|
||||
Node: ANSI-C Quoting16577
|
||||
Node: Locale Translation17887
|
||||
Node: Creating Internationalized Scripts19198
|
||||
Node: Comments23315
|
||||
Node: Shell Commands23933
|
||||
Node: Reserved Words24871
|
||||
Node: Simple Commands25627
|
||||
Node: Pipelines26281
|
||||
Node: Lists29240
|
||||
Node: Compound Commands31035
|
||||
Node: Looping Constructs32047
|
||||
Node: Conditional Constructs34542
|
||||
Node: Command Grouping48886
|
||||
Node: Coprocesses50364
|
||||
Node: GNU Parallel53027
|
||||
Node: Shell Functions53944
|
||||
Node: Shell Parameters61829
|
||||
Node: Positional Parameters66217
|
||||
Node: Special Parameters67119
|
||||
Node: Shell Expansions70333
|
||||
Node: Brace Expansion72460
|
||||
Node: Tilde Expansion75194
|
||||
Node: Shell Parameter Expansion77815
|
||||
Node: Command Substitution96166
|
||||
Node: Arithmetic Expansion97521
|
||||
Node: Process Substitution98489
|
||||
Node: Word Splitting99609
|
||||
Node: Filename Expansion101553
|
||||
Node: Pattern Matching104302
|
||||
Node: Quote Removal108910
|
||||
Node: Redirections109205
|
||||
Node: Executing Commands118865
|
||||
Node: Simple Command Expansion119535
|
||||
Node: Command Search and Execution121645
|
||||
Node: Command Execution Environment124023
|
||||
Node: Environment127058
|
||||
Node: Exit Status128721
|
||||
Node: Signals130505
|
||||
Node: Shell Scripts133954
|
||||
Node: Shell Builtin Commands136981
|
||||
Node: Bourne Shell Builtins139019
|
||||
Node: Bash Builtins160480
|
||||
Node: Modifying Shell Behavior191336
|
||||
Node: The Set Builtin191681
|
||||
Node: The Shopt Builtin202282
|
||||
Node: Special Builtins218194
|
||||
Node: Shell Variables219173
|
||||
Node: Bourne Shell Variables219610
|
||||
Node: Bash Variables221714
|
||||
Node: Bash Features254530
|
||||
Node: Invoking Bash255543
|
||||
Node: Bash Startup Files261556
|
||||
Node: Interactive Shells266659
|
||||
Node: What is an Interactive Shell?267069
|
||||
Node: Is this Shell Interactive?267718
|
||||
Node: Interactive Shell Behavior268533
|
||||
Node: Bash Conditional Expressions272162
|
||||
Node: Shell Arithmetic276804
|
||||
Node: Aliases279748
|
||||
Node: Arrays282361
|
||||
Node: The Directory Stack288752
|
||||
Node: Directory Stack Builtins289536
|
||||
Node: Controlling the Prompt293796
|
||||
Node: The Restricted Shell296761
|
||||
Node: Bash POSIX Mode299371
|
||||
Node: Shell Compatibility Mode311295
|
||||
Node: Job Control319324
|
||||
Node: Job Control Basics319784
|
||||
Node: Job Control Builtins324786
|
||||
Node: Job Control Variables330186
|
||||
Node: Command Line Editing331342
|
||||
Node: Introduction and Notation333013
|
||||
Node: Readline Interaction334636
|
||||
Node: Readline Bare Essentials335827
|
||||
Node: Readline Movement Commands337610
|
||||
Node: Readline Killing Commands338570
|
||||
Node: Readline Arguments340488
|
||||
Node: Searching341532
|
||||
Node: Readline Init File343718
|
||||
Node: Readline Init File Syntax344979
|
||||
Node: Conditional Init Constructs368178
|
||||
Node: Sample Init File372374
|
||||
Node: Bindable Readline Commands375498
|
||||
Node: Commands For Moving376702
|
||||
Node: Commands For History378753
|
||||
Node: Commands For Text383747
|
||||
Node: Commands For Killing387396
|
||||
Node: Numeric Arguments390429
|
||||
Node: Commands For Completion391568
|
||||
Node: Keyboard Macros395759
|
||||
Node: Miscellaneous Commands396446
|
||||
Node: Readline vi Mode402385
|
||||
Node: Programmable Completion403292
|
||||
Node: Programmable Completion Builtins411072
|
||||
Node: A Programmable Completion Example421767
|
||||
Node: Using History Interactively427014
|
||||
Node: Bash History Facilities427698
|
||||
Node: Bash History Builtins430703
|
||||
Node: History Interaction435711
|
||||
Node: Event Designators439331
|
||||
Node: Word Designators440685
|
||||
Node: Modifiers442445
|
||||
Node: Installing Bash444256
|
||||
Node: Basic Installation445393
|
||||
Node: Compilers and Options449115
|
||||
Node: Compiling For Multiple Architectures449856
|
||||
Node: Installation Names451549
|
||||
Node: Specifying the System Type453658
|
||||
Node: Sharing Defaults454374
|
||||
Node: Operation Controls455047
|
||||
Node: Optional Features456005
|
||||
Node: Reporting Bugs467223
|
||||
Node: Major Differences From The Bourne Shell468498
|
||||
Node: GNU Free Documentation License485348
|
||||
Node: Indexes510525
|
||||
Node: Builtin Index510979
|
||||
Node: Reserved Word Index517806
|
||||
Node: Variable Index520254
|
||||
Node: Function Index537028
|
||||
Node: Concept Index550812
|
||||
Node: Top887
|
||||
Node: Introduction2797
|
||||
Node: What is Bash?3013
|
||||
Node: What is a shell?4127
|
||||
Node: Definitions6665
|
||||
Node: Basic Shell Features9616
|
||||
Node: Shell Syntax10835
|
||||
Node: Shell Operation11861
|
||||
Node: Quoting13154
|
||||
Node: Escape Character14458
|
||||
Node: Single Quotes14943
|
||||
Node: Double Quotes15291
|
||||
Node: ANSI-C Quoting16569
|
||||
Node: Locale Translation17879
|
||||
Node: Creating Internationalized Scripts19190
|
||||
Node: Comments23307
|
||||
Node: Shell Commands23925
|
||||
Node: Reserved Words24863
|
||||
Node: Simple Commands25619
|
||||
Node: Pipelines26273
|
||||
Node: Lists29272
|
||||
Node: Compound Commands31067
|
||||
Node: Looping Constructs32079
|
||||
Node: Conditional Constructs34574
|
||||
Node: Command Grouping48918
|
||||
Node: Coprocesses50396
|
||||
Node: GNU Parallel53059
|
||||
Node: Shell Functions53976
|
||||
Node: Shell Parameters61861
|
||||
Node: Positional Parameters66249
|
||||
Node: Special Parameters67151
|
||||
Node: Shell Expansions70365
|
||||
Node: Brace Expansion72492
|
||||
Node: Tilde Expansion75226
|
||||
Node: Shell Parameter Expansion77847
|
||||
Node: Command Substitution96198
|
||||
Node: Arithmetic Expansion97553
|
||||
Node: Process Substitution98521
|
||||
Node: Word Splitting99641
|
||||
Node: Filename Expansion101585
|
||||
Node: Pattern Matching104334
|
||||
Node: Quote Removal108991
|
||||
Node: Redirections109286
|
||||
Node: Executing Commands118946
|
||||
Node: Simple Command Expansion119616
|
||||
Node: Command Search and Execution121726
|
||||
Node: Command Execution Environment124104
|
||||
Node: Environment127139
|
||||
Node: Exit Status128802
|
||||
Node: Signals130586
|
||||
Node: Shell Scripts134035
|
||||
Node: Shell Builtin Commands137062
|
||||
Node: Bourne Shell Builtins139100
|
||||
Node: Bash Builtins160561
|
||||
Node: Modifying Shell Behavior191417
|
||||
Node: The Set Builtin191762
|
||||
Node: The Shopt Builtin202363
|
||||
Node: Special Builtins218275
|
||||
Node: Shell Variables219254
|
||||
Node: Bourne Shell Variables219691
|
||||
Node: Bash Variables221795
|
||||
Node: Bash Features254611
|
||||
Node: Invoking Bash255624
|
||||
Node: Bash Startup Files261637
|
||||
Node: Interactive Shells266768
|
||||
Node: What is an Interactive Shell?267178
|
||||
Node: Is this Shell Interactive?267827
|
||||
Node: Interactive Shell Behavior268642
|
||||
Node: Bash Conditional Expressions272271
|
||||
Node: Shell Arithmetic276913
|
||||
Node: Aliases279857
|
||||
Node: Arrays282470
|
||||
Node: The Directory Stack288861
|
||||
Node: Directory Stack Builtins289645
|
||||
Node: Controlling the Prompt293905
|
||||
Node: The Restricted Shell296870
|
||||
Node: Bash POSIX Mode299480
|
||||
Node: Shell Compatibility Mode311404
|
||||
Node: Job Control319433
|
||||
Node: Job Control Basics319893
|
||||
Node: Job Control Builtins324895
|
||||
Node: Job Control Variables330465
|
||||
Node: Command Line Editing331621
|
||||
Node: Introduction and Notation333292
|
||||
Node: Readline Interaction334915
|
||||
Node: Readline Bare Essentials336106
|
||||
Node: Readline Movement Commands337889
|
||||
Node: Readline Killing Commands338849
|
||||
Node: Readline Arguments340767
|
||||
Node: Searching341811
|
||||
Node: Readline Init File343997
|
||||
Node: Readline Init File Syntax345258
|
||||
Node: Conditional Init Constructs368457
|
||||
Node: Sample Init File372653
|
||||
Node: Bindable Readline Commands375777
|
||||
Node: Commands For Moving376981
|
||||
Node: Commands For History379032
|
||||
Node: Commands For Text384026
|
||||
Node: Commands For Killing387675
|
||||
Node: Numeric Arguments390708
|
||||
Node: Commands For Completion391847
|
||||
Node: Keyboard Macros396038
|
||||
Node: Miscellaneous Commands396725
|
||||
Node: Readline vi Mode402664
|
||||
Node: Programmable Completion403571
|
||||
Node: Programmable Completion Builtins411351
|
||||
Node: A Programmable Completion Example422046
|
||||
Node: Using History Interactively427293
|
||||
Node: Bash History Facilities427977
|
||||
Node: Bash History Builtins430982
|
||||
Node: History Interaction435990
|
||||
Node: Event Designators439610
|
||||
Node: Word Designators440964
|
||||
Node: Modifiers442724
|
||||
Node: Installing Bash444535
|
||||
Node: Basic Installation445672
|
||||
Node: Compilers and Options449394
|
||||
Node: Compiling For Multiple Architectures450135
|
||||
Node: Installation Names451828
|
||||
Node: Specifying the System Type453937
|
||||
Node: Sharing Defaults454653
|
||||
Node: Operation Controls455326
|
||||
Node: Optional Features456284
|
||||
Node: Reporting Bugs467502
|
||||
Node: Major Differences From The Bourne Shell468777
|
||||
Node: GNU Free Documentation License485627
|
||||
Node: Indexes510804
|
||||
Node: Builtin Index511258
|
||||
Node: Reserved Word Index518085
|
||||
Node: Variable Index520533
|
||||
Node: Function Index537307
|
||||
Node: Concept Index551091
|
||||
|
||||
End Tag Table
|
||||
|
||||
|
||||
Reference in New Issue
Block a user