bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: redirecting/merging stderr and stdout in cygwin bash


From: Chet Ramey
Subject: Re: redirecting/merging stderr and stdout in cygwin bash
Date: Thu, 24 Jan 2002 09:06:29 -0500

> I'm not sure this is the write news group, but other cygwin bash
> questions seemed to be asked here, including an almost identical one
> from last June that apparently went unanswered.
> 
> I'd like to merge stderr with stdout using syntax along the lines of:
> 
>   something  2>&1 >$logfile
> 
> but cygwin's bash doesn't seem to support this.

Read the manual page.  There is text in there explaining exactly this
situation.

The short answer is to change the order:

        something >$logfile 2>&1

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]