Path: chuka.playstation.co.uk!scea!peter_alau@playstation.sony.com From: "Steve Tolin" Newsgroups: scee.yaroze.programming.gnu_compiler Subject: Re: error file.. Date: Fri, 23 Oct 1998 02:20:27 -0400 Organization: SCEA News Server Lines: 46 Message-ID: <70p6k5$dnq1@scea> References: <3589d5d3.3140602@news.playstation.co.uk> <358A1D67.2198500D@micronetics.com> <358D2D14.6AD1DBDA@codeworks.demon.co.uk> NNTP-Posting-Host: sud-tcs1-port59.vianet.on.ca X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Can this be clarified a bit please... What is the syntax required... I've tried what is printed below, it creates the file but it fails to write the error messages to it. I remember having done this a while back but I can't remember how it was done and my notes are lost. There is a newbie member in SCEA that doesn't have access to these grouyps yet that I'm also trying to help. Thanks in advance. Steve Tolin titan@vianet.on.ca Jim wrote in message <358D2D14.6AD1DBDA@codeworks.demon.co.uk>... >Toby Sargeant wrote: >> >> Is this NT/95 syntax? is it the same as gcc main.c 2>&1 > error.lst? >>If it isn't, then whoever wrote the NT/95 shell should be _shot_. > >Yep, sick ain't it.. :-) > >>Under sh (where >> this syntax came from), your example would redirect stdout to a file, >and then redirect stderr to stdout (but not to the file). That's the >>way it should be. >> >> toby. > >If you do it the correct way for example 'gcc 2>&1 > jim' its doesn't >redirect stderr to the file as you mention. I don't even think MS >document any of this either. > >To be honest though I was surprised it even worked at all. > >I guess it the choice people make when they choose MS products.. :-) > >Cheers > >Jim >