Thread overview | |||||
---|---|---|---|---|---|
|
May 22, 2014 Separate Piping of dmd stdout and stderr through ddemangle | ||||
---|---|---|---|---|
| ||||
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 Re: Separate Piping of dmd stdout and stderr through ddemangle | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nordlöw | 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 Re: Separate Piping of dmd stdout and stderr through ddemangle | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nordlöw | 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 |
Copyright © 1999-2021 by the D Language Foundation