Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16173

Re: Trap in command substitution breaks parent

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: Trap in command substitution breaks parent
Date 2020-04-19 12:37 -0400
Organization ITS, Case Western Reserve University
Message-ID <mailman.693.1587314269.3066.bug-bash@gnu.org> (permalink)
References <8994c3a1-024b-0193-cb72-a1a20120c9c7@ntymail.com> <9926f959-2aa7-0545-066c-0968b541b18b@case.edu>

Show all headers | View raw


On 4/17/20 5:31 AM, DALECKI Léo wrote:

> Bash Version: 4.4
> Patch Level: 20
> Release Status: release
> 
> Description:
>     A trap set with an external call in a command substitution seems to
> break the parent Bash shell.

Thanks for the report. This is a race condition -- the parent shell handles
the SIGINT before it should. This will be fixed in the next devel branch
push.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Trap in command substitution breaks parent Chet Ramey <chet.ramey@case.edu> - 2020-04-19 12:37 -0400

csiph-web