On Sat, Sep 09, 2006 at 09:24:27PM -0700, Jason Dagit wrote: > I just used a program: > > ----------------- > import System.IO > > main :: IO () > main = do hPutStrLn stdout "writing to stdout..." > hFlush stdout > hPutStrLn stderr "writing to stderr..." > hFlush stderr > ------------------ > > And generated the following: > H:\>main.exe > writing to stdout... > writing to stderr... > > H:\>main.exe > out.txt > writing to stderr... > > H:\>type out.txt > writing to stdout... > > H:\>main.exe 2> out2.txt > writing to stdout... > > H:\>type out2.txt > writing to stderr... > > H:\>main.exe 2>>&1 > out3.txt > writing to stderr... > > So from my 2 minute expirement I see it's possible to redirect them > separately but I don't understand how to redirect them at the same > time.
Thanks! This works just like one would expect. I wonder where I got my silly idea that it didn't from -- illful thinking about Windows (by me or someone else), maybe? -- Tommy Pettersson <[EMAIL PROTECTED]> _______________________________________________ darcs-devel mailing list [email protected] http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel
