On 10/12/22 11:23 AM, Andreas Schwab wrote:
gmatch in lib/glob/sm_loop.c returns FNM_NOMATCH when a signal is pending. This can cause spurious pattern matching failures if a SIGPIPE is received while executing the EXIT trap:
OK. An interrupt or a terminating signal, yes. Since gmatch and extmatch can call each other recursively, this is a way to deal with the problem described in https://lists.gnu.org/archive/html/bug-bash/2021-07/msg00065.html by letting higher layers handle it. But that's not really the issue right here. The question is whether the shell should process additional terminating signals while it's running the exit trap from the terminating signal handler. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/