bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: syntax errors produced by interaction between process substitution a


From: Chet Ramey
Subject: Re: syntax errors produced by interaction between process substitution and a SIGCHLD trap
Date: Thu, 19 Sep 2019 10:37:45 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

On 7/31/19 2:35 PM, Travis Everett wrote:

> Bash Version: 5.0
> Patch Level: 7
> Release Status: release
> 
> Description:
>        I stumbled into an odd interaction between process substitution and
> a SIGCHLD trap that causes syntax errors in otherwise valid commands.
> 
>        I managed to pare this down to a very minimal reproduction. I also
> included a more realistic command at the end just in case I'm mistaken
> about the minimal reproduction showing exactly the same issue.

Thanks for the report. This will be fixed in the next devel branch push.

> 
>        I see the same behavior in bash 4.4.23(1)-release and do *not* see
> it in the macos system bash 3.2.57(1)-release.

That's the result of implementing the POSIX requirement of parsing the
contents of $(...) command substitutions, which happened between bash-3.2
and bash-4.0.

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/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]