This is the mail archive of the
mailing list for the Cygwin project.
Re: Copying stderr to stdout
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Øyvind Harboe <oyvind dot harboe at zylin dot com>
- Cc: cygwin at cygwin dot com
- Date: Fri, 26 Sep 2003 11:36:30 -0400 (EDT)
- Subject: Re: Copying stderr to stdout
- References: <LDEFIMCDLFJKECEABIHDOEDICGAA.email@example.com>
- Reply-to: cygwin at cygwin dot com
On Fri, 26 Sep 2003, Øyvind Harboe wrote:
> I was having a bit of trouble copying stderr to stdout, e.g.
> $ ls 2>&1 lkajsdflkjasdflkj >ll
> ls: lkajsdflkjasdflkj: No such file or directory
> I would have expected the error message to end up in "ll".
> If I place "2>&1" at the end of the line it works.
> Is this the intended behaviour?
"man bash", "/order of redirections", Enter.
|\ _,,,---,,_ firstname.lastname@example.org
ZZZzz /,`.-'`' -. ;-;;,_ email@example.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html