Separate Piping of dmd stdout and stderr through ddemangle

via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu May 22 04:20:42 PDT 2014


On Thursday, 22 May 2014 at 09:29:49 UTC, Nordlöw wrote:
> Is there a Bash way to pipe stdout and stderr *separately* 
> through ddemangle?
>
> I'm aware of
>
>     2>&1
>
> but this removes separation of stdout and stderr.

You can use process substitution [1]:

dmd ... 2> >( ddemangle >&2 )

(or leave out the >&2 if you want the output of ddemangle to stay 
on stdout)

[1] http://www.tldp.org/LDP/abs/html/process-sub.html


More information about the Digitalmars-d-learn mailing list