Thread overview
Separate Piping of dmd stdout and stderr through ddemangle
May 22, 2014
Nordlöw
May 22, 2014
simendsjo
May 22, 2014
Marc Schütz
May 22, 2014
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.
May 22, 2014
On 05/22/2014 11:29 AM, "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.

2>&1 means "redirect file handle 2 to the same as file handle 1".
So it will redirect stderr to stdout. I'm not exactly sure what you want
to do though, so this might not be the answer you are looking for.
May 22, 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