Mail Archives: djgpp/2003/05/12/08:30:03
Peter S Tillier wrote:
> "Manuel Collado" <m DOT collado AT lml DOT ls DOT fi DOT upm DOT es> 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
- Raw text -