www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Separate Piping of dmd stdout and stderr through ddemangle

reply =?UTF-8?B?Ik5vcmRsw7Z3Ig==?= <per.nordlow gmail.com> writes:
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
next sibling parent simendsjo <simendsjo gmail.com> writes:
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
prev sibling parent "Marc =?UTF-8?B?U2Now7x0eiI=?= <schuetzm gmx.net> writes:
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
May 22 2014