digitalmars.D.learn - Separate Piping of dmd stdout and stderr through ddemangle
- =?UTF-8?B?Ik5vcmRsw7Z3Ig==?= (5/5) May 22 2014 Is there a Bash way to pipe stdout and stderr *separately*
- simendsjo (4/12) May 22 2014 2>&1 means "redirect file handle 2 to the same as file handle 1".
- "Marc =?UTF-8?B?U2Now7x0eiI=?= <schuetzm gmx.net> (6/11) May 22 2014 You can use process substitution [1]:
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
May 22 2014