[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tee >(sponge f1) >(sponge f2) to pipeline form
From: |
Russell Lewis |
Subject: |
Re: tee >(sponge f1) >(sponge f2) to pipeline form |
Date: |
Thu, 9 Apr 2020 12:58:00 -0700 |
I believe that the child processes get the same stderr as the parent
process. For instance, this prints two lines:
COMMAND
echo <(echo "error" 1>&2)
SHELL OUTPUT
/dev/fd/63
error
Russ
On Thu, Apr 9, 2020 at 12:26 PM Peng Yu <address@hidden> wrote:
> Hi,
>
> tee >(sponge f1) >(sponge f2)
>
> no errors will be captured in the above command in the unnamed pipes.
> Does anybody know whether there is a way to rewrite it in a pipeline
> form so that errors of sponge will be captured? Thanks.
>
> --
> Regards,
> Peng
>
>