www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/01/27/14:16:45

From: "Peter S Tillier" <petert AT deadspam DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: gawk 3.1.1 DJGPP v2.04 on Windows 2000 Pro problem using system() function and LFNs
Date: Mon, 27 Jan 2003 19:02:55 -0000
Organization: Private
Lines: 94
Message-ID: <b13vp0$5g8$1$830fa79f@news.demon.co.uk>
References: <b0ttav$pnu$2$8302bc10 AT news DOT demon DOT co DOT uk> <mjr63vohi8bavc541fptejdvomm1698qb7 AT 4ax DOT com>
NNTP-Posting-Host: eq1152.demon.co.uk
X-Trace: news.demon.co.uk 1043694177 5640 158.152.22.92 (27 Jan 2003 19:02:57 GMT)
X-Complaints-To: abuse AT demon DOT net
NNTP-Posting-Date: Mon, 27 Jan 2003 19:02:57 +0000 (UTC)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019