help-bash
[Top][All Lists]
Advanced

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

Re: How to pipe just stderr to stdin in a pipeline?


From: Peng Yu
Subject: Re: How to pipe just stderr to stdin in a pipeline?
Date: Mon, 11 May 2020 16:25:07 -0500

One use case is wget which needs to divert the real content from the
response header, in which case the response header needs to be dump to
stderr if tempfiles should be avoided. But then handing stderr will be
important.

On 5/11/20, Chet Ramey <address@hidden> wrote:
> On 5/11/20 12:24 PM, Peng Yu wrote:
>> Hi Chet, These walkarounds seem to be cumbersome.
>>
>> Given | and |& are available, for the reason of symmetry, could an
>> operator be introduced to bash to make piping stderr only in a
>> pipeline easy?
>
> I don't think there is enough demand to invent syntax and do an
> implementation. It's not another feature I need to support.
>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>                ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/
>


-- 
Regards,
Peng



reply via email to

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