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: Marc Auslander
Subject: Re: redirecting/merging stderr and stdout in cygwin bash
Date: 24 Jan 2002 16:02:50 -0500

address@hidden (Tim Hanson) writes:

....
> 
> 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.
> 
> any ideas?
...

cygwin and unix bash behave identically for me with this.  But it
won't do what you want, because it redirects 2 into 1 BEFORE it
redirects 1 into logfile.

try:

something > $logfile 2>&1

-- 


Marc Auslander   <address@hidden>   914 945-4346  (Tieline 862 Fax x4425)



reply via email to

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