help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] How to catch errors in "readarray ... < <(...)"


From: Chet Ramey
Subject: Re: [Help-bash] How to catch errors in "readarray ... < <(...)"
Date: Thu, 26 Mar 2015 14:14:31 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

On 3/26/15 11:55 AM, Peng Yu wrote:
> Hi,
> 
> The error in <() is not cached in the following code. Is there a
> solution to this problem? Thanks.
> 
> readarray -t array < <(printf '%s\n' 'a b' 'c d'; exit 1)
> printf "%s\n" "address@hidden"

You asked the exact same question less than three weeks ago in
bug-bash.

http://lists.gnu.org/archive/html/bug-bash/2015-03/msg00063.html

Some of those suggestions may still be useful.

http://lists.gnu.org/archive/html/bug-bash/2015-03/msg00066.html
and
http://lists.gnu.org/archive/html/bug-bash/2015-03/msg00100.html

suggest possible approaches.

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



reply via email to

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