Mail Archives: djgpp/2003/01/27/14:16:45
Andrew,
Thanks for the prompt reply.
> >gawk 3.1.1 seems to have a problem when using the system() function
> >on Windows 2000 Pro and LFNs. I have been using the version from
> >the v2.04 set from the Rice download page at
> Please ensure that you read the info on the page and try to follow it.
>
I have done so.
> >Here's an example session running is a W2K "dos" window (i.e.,
> >not using a full DJGPP environment):
> Are you using cmd.exe or command.com?
>
cmd.exe
> What is the date of gawk.exe?
03/12/2002 10:40 # DD/MM/YYYY format
> What do you have comspec set to?
>
C:\WINNT\system32\cmd.exe
> ..SNIP..
> >i.e., using system("cmd /c whatever") appears to work OK, but
> >system("whatever") doesn't.
>
My suspicion was that the system() command in gawk was
invoking command.com rather than cmd.exe, although I
assume that the value of COMSPEC would be checked by
the gawk code.
This suspicion seems to be confirmed, at least in
part, by the following session:
C:\djgpp\home\pt>gawk -f 'BEGIN{system("ver")}'
MS-DOS Version 5.00.500
C:\djgpp\home\pt>gawk -f 'BEGIN{system("cmd /c ver")}'
Microsoft Windows 2000 [Version 5.00.2195]
C:\djgpp\home\pt>
I'm not sure what the first version is, but the
second is cmd.exe's.
> >Previous versions of DJGPP gawk have run OK in Windows "DOS"
> >boxes for me in the past.
> What are the previous versions? Are these from a previous downlload
> from clio?
>
To be honest I'm not sure of the version numbers, but
AFAICR I didn't have this specific problem on NT4 on
which I did use the LFN TSR.
The v2.04 versions work fine on Win98SE even with the
specific code used in my earlier examples.
> > Is this a known problem with this
> >combination of "DOS" and LFNs? If so is it a DJGPP or W2K
> >problem? If the former is there a bug report in hand (I
> >couldn't find one when I did a quick search at
> >www.delorie.com/djgpp )
> Please check back at the unofficial 2.04 page in a few days for the
> next update and give it another try. There are a few problems with
> find that was uploaded in Decmber and Janurary which have since been
> fixed in a build I did last week usign the latest LIBC code.
>
Will do, thanks.
> If previosu 2.04 gawk versions worked then I expect that this should
> be fixed in the enxt update. If you cannot wait then email me at the
> address given on the 2.04 page.
>
>
> Andrew
Regards,
--
Peter S Tillier
"Who needs perl when you can write dc and sokoban in sed?"
- Raw text -