bug-bash
[Top][All Lists]
Advanced

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

Re: How to deal with errors in <()?


From: Chet Ramey
Subject: Re: How to deal with errors in <()?
Date: Mon, 09 Mar 2015 15:07:28 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

On 3/8/15 6:05 PM, Stephane Chazelas wrote:

> Are bash questions no longer on topic here? bash-bug used to be
> the place to discuss bash (before help-bash was created). It maps to the
> gnu.bash.bug newsgroup. I don't think help-bash maps to usenet
> (though you can access it over NNTP on gmane).

I personally don't care which mailing list gets the questions.

> $ bash --norc
> bash-4.3$ echo <(exit 123)
> /dev/fd/63
> bash-4.3$ echo "$!"
> 12142
> bash-4.3$ wait "$!"
> bash: wait: pid 12142 is not a child of this shell
> 
> Having the process substitution pid in $! is not very useful if
> you can't wait for it to retrieve the status.

I agree.  I will look at making that work for the next release of bash.

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



reply via email to

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