handle signals at more places in brace expansion; fix for subshells changing terminal process group on signals

This commit is contained in:
Chet Ramey
2022-12-21 09:57:36 -05:00
parent c4a2e37470
commit 001918cdec
11 changed files with 139 additions and 41 deletions
+21 -15
View File
@@ -5,12 +5,12 @@
.\" Case Western Reserve University
.\" chet.ramey@case.edu
.\"
.\" Last Change: Fri Dec 2 15:53:52 EST 2022
.\" Last Change: Mon Dec 19 13:56:57 EST 2022
.\"
.\" bash_builtins, strip all but Built-Ins section
.if \n(zZ=1 .ig zZ
.if \n(zY=1 .ig zY
.TH BASH 1 "2022 December 2" "GNU Bash 5.2"
.TH BASH 1 "2022 December 19" "GNU Bash 5.2"
.\"
.\" There's some problem with having a `@'
.\" in a tagged paragraph with the BSD man macros.
@@ -11013,18 +11013,20 @@ or
.I file
if
.I name
is an alias, shell reserved word, function, builtin, or disk file,
is an alias, shell reserved word, function, builtin, or executable disk file,
respectively.
If the
.I name
is not found, then nothing is printed, and an exit status of false
is returned.
is not found, then nothing is printed, and \fBtype\fP returns a
non-zero exit status.
If the
.B \-p
option is used,
.B type
either returns the name of the disk file
that would be executed if
either returns the name of the executable file
that would be found by searching
.B $PATH
if
.I name
were specified as a command name,
or nothing if
@@ -11054,16 +11056,20 @@ If the
.B \-a
option is used,
.B type
prints all of the places that contain
an executable named
prints all of the places that contain a command named
.IR name .
This includes aliases and functions,
if and only if the
.B \-p
option is not also used.
The table of hashed commands is not consulted
This includes aliases, reserved words, functions, and builtins,
but the path search options (\fB\-p\fP and \fB\-P\fP)
can be supplied to restrict the output to executable files.
\fBtype\fP does not consult the table of hashed commands
when using
.BR \-a .
.B \-a
with
.BR \-p ,
and only performs a
.SM
.B PATH
search for \fIname\fP.
The
.B \-f
option suppresses shell function lookup, as with the \fBcommand\fP builtin.
+16 -11
View File
@@ -5049,27 +5049,32 @@ For each @var{name}, indicate how it would be interpreted if used as a
command name.
If the @option{-t} option is used, @code{type} prints a single word
which is one of @samp{alias}, @samp{function}, @samp{builtin},
@samp{file} or @samp{keyword},
if @var{name} is an alias, shell function, shell builtin,
disk file, or shell reserved word, respectively.
which is one of @samp{alias}, @samp{keyword}, @samp{function},
@samp{builtin}, or @samp{file},
if @var{name} is an alias, shell reserved word, shell function,
shell builtin, or executable disk file, respectively.
If the @var{name} is not found, then nothing is printed, and
@code{type} returns a failure status.
If the @option{-p} option is used, @code{type} either returns the name
of the disk file that would be executed, or nothing if @option{-t}
would not return @samp{file}.
of the executable file that would be found by searching @code{$PATH},
or nothing if @option{-t} would not return @samp{file}.
The @option{-P} option forces a path search for each @var{name}, even if
@option{-t} would not return @samp{file}.
If a command is hashed, @option{-p} and @option{-P} print the hashed value,
which is not necessarily the file that appears first in @code{$PATH}.
If a @var{name} is present in the table of hashed commands,
options @option{-p} and @option{-P} print the hashed value, which is not
necessarily the file that appears first in @code{$PATH}.
If the @option{-a} option is used, @code{type} returns all of the places
that contain an executable named @var{file}.
This includes aliases and functions, if and only if the @option{-p} option
is not also used.
that contain a command named @var{name}.
This includes aliases, reserved words, functions, and builtins,
but the path search options (@option{-p} and @option{-P}) can be supplied
to restrict the output to executable files.
If @option{-a} is supplied with @option{-p}, @code{type} does not look
in the table of hashed commands, and only performs a @code{PATH}
search for @var{name}.
If the @option{-f} option is used, @code{type} does not attempt to find
shell functions, as with the @code{command} builtin.
+2 -2
View File
@@ -2,10 +2,10 @@
Copyright (C) 1988-2022 Free Software Foundation, Inc.
@end ignore
@set LASTCHANGE Fri Dec 2 16:14:27 EST 2022
@set LASTCHANGE Mon Dec 19 13:56:45 EST 2022
@set EDITION 5.2
@set VERSION 5.2
@set UPDATED 2 December 2022
@set UPDATED 19 December 2022
@set UPDATED-MONTH December 2022