Message-ID: <3EBF90CF.4020105@lml.ls.fi.upm.es> Date: Mon, 12 May 2003 14:17:19 +0200 From: Manuel Collado User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: gawk 3.1.1: bug in stdout redirection on WinNT 4.0 References: <3EB7C0D6 DOT 7030206 AT lml DOT ls DOT fi DOT upm DOT es> <9003-Tue06May2003200634+0300-eliz AT elta DOT co DOT il> <3EB8F9A6 DOT 4050307 AT lml DOT ls DOT fi DOT upm DOT es> <2427-Wed07May2003165629+0300-eliz AT elta DOT co DOT il> <3EBA4A19 DOT 9090902 AT lml DOT ls DOT fi DOT upm DOT es> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 138.100.10.20 X-Trace: 12 May 2003 14:14:37 +0100, 138.100.10.20 Lines: 67 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Peter S Tillier wrote: > "Manuel Collado" wrote in message > news:3EBA4A19 DOT 9090902 AT lml DOT ls DOT fi DOT upm DOT es... > ... >>F:\PRUEBAS\gawkbug>gawkbug >>----------------------- >>bbbb <======== overwritten >>aaaaaaaaaaaaaaaaa >>----------------------- >>GNU Awk 3.1.1 >>Copyright (C) 1989, 1991-2002 Free Software Foundation.... > ... > Just tried this on W2K Sp3 and got the following results using > CMD.EXE as the shell: > > D:\djgpp\home\pt>cat gawkbug.bat > @echo off > echo aaaaaaaaaaaaaaaaaaaaaaa > out.txt > gawk -f bbbb >> out.txt > echo ----------------------- > type out.txt > echo ----------------------- > gawk --version | head -3 > > > D:\djgpp\home\pt>gawkbug > ----------------------- > aaaaaaaaaaaaaaaaaaaaaaa > bbbb > ----------------------- > GNU Awk 3.1.1 > Copyright (C) 1989, 1991-2002 Free Software Foundation. > > D:\djgpp\home\pt> > > This seems OK to me. So there's a problem with the NT4 shell > redirections, not gawk, AFAICS. Perhaps the DJGPP command line > processing code doesn't work correctly with NT4 SP6's cmd.exe that > you are running. Is is the original SP6 or SP6a? ISTR that there > were some problems with SP6 because SP6a arrived pretty soon after > SP6. Yes, it seems to be a problem of the NT4 shell, and the problem only shows up in specific circumstances. See my other post about reproducing the problem without gawk, by simply calling fstat. > > BTW I also tried it under W2K SP3's command.com and it works fine > there too. Sorry I don't have NT4 SP6 access to try it there. Perhaps your machines are better configured than mines. I've experienced the problem in NT4 SP5/SP6 and in Win2K (no SP). > > HTH > -- > Peter S Tillier > 'This post represents the views of the author and does > not necessarily accurately represent the views of BT.' > > Tanks, a lot. -- To reply by e-mail, please remove the extra dot in the given address: m.collado -> mcollado