|
| From: | Peng Yu |
| Subject: | Re: [Help-bash] stdout and stderr to two different process substitutions |
| Date: | Wed, 25 Jan 2012 09:21:36 -0600 |
> First of all, 1>&2 literally does mean "redirect stdin to where stderr is
> currently pointing". Â That's what it's for.
You interpretation seems to be different from what is explained here.
Do I misunderstand anything here? I think that one of them must be
wrong. The question is which one.
http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-3.html
"3.4 Sample: stdout 2 stderr
This will cause the stderr ouput of a program to be written to the
same filedescriptor than stdout.
grep da * 1>&2
"
--
Regards,
Peng
| [Prev in Thread] | Current Thread | [Next in Thread] |