bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GAWK 3.1.0 Windows NT versus Unix


From: Hans-Bernhard Broeker
Subject: Re: GAWK 3.1.0 Windows NT versus Unix
Date: 9 Aug 2002 09:11:58 GMT

Jim Sievers <address@hidden> wrote:
> Would like some clarification on a problem that I discovered using GAWK on
> both Unix and Windows NT

But: what port of GAWK is that? Is it the one from Cygwin, or the
DJGPP version, or yet another one?

> Windows NT version does not appear to be returning status codes from the
> SYSTEM() command properly

That's often because one of the usual horrible M$ stupidities: at
least their DOS shell, command.com, stubbornly insists on always
returning a zero status to the caller, no matter what the status of
the last command was.  And since the C library function system() is
defined to work through the shell, this means that it would be
impossible for the return value of system() ever to be false, on DOS.
Wherein "DOS" does include the DJGPP version of GAWK, even if you run
that on NT.

> A standard ANSI C program appears to work just fine and it calls the
> same GNU test utility

Compiled by what compiler, for what target platform?
-- 
Hans-Bernhard Broeker (address@hidden)
Even if all the snow were burnt, ashes would remain.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]