help-bash
[Top][All Lists]
Advanced

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

Re: catching the statuts of sourced unamed pipe?


From: Lawrence Velázquez
Subject: Re: catching the statuts of sourced unamed pipe?
Date: Sat, 21 Jan 2023 23:42:25 -0500
User-agent: Cyrus-JMAP/3.9.0-alpha0-85-gd6d859e0cf-fm-20230116.001-gd6d859e0

On Sat, Jan 21, 2023, at 9:30 PM, Peng Yu wrote:
> The return status of the sourced unnamed pipe is not available. What
> is the best way to catch the return status of the unnamed pipe?
> Thanks.
>
> source <(false) || echo "$?"

You started a thread last year in which this was discussed at length
(although the tl;dr is the answer Kerin just gave).

https://lists.gnu.org/archive/html/help-bash/2022-03/msg00068.html

-- 
vq



reply via email to

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