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: Peng Yu
Subject: Re: catching the statuts of sourced unamed pipe?
Date: Sun, 22 Jan 2023 06:10:10 -0600

Thanks. I forgot about the keywords used at that time, so I wasn’t
available to find that thread in my email.

On Sat, Jan 21, 2023 at 10:43 PM Lawrence Velázquez <vq@larryv.me> wrote:

> 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
>
-- 
Regards,
Peng


reply via email to

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