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