[Top][All Lists]

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

RE: gawk version

From: Roel Speerstra
Subject: RE: gawk version
Date: Thu, 1 Jul 2004 08:50:28 +0200

Thank you for the information...
I got a precompiled binary & for now i'll stick to the working 3.1.1 one...


-----Oorspronkelijk bericht-----
Van: address@hidden [mailto:address@hidden Eli Zaretskii
Verzonden: woensdag 30 juni 2004 19:41
Aan: Roel Speerstra
CC: address@hidden; address@hidden
Onderwerp: Re: gawk version

> From: Roel Speerstra <address@hidden>
> Date: Wed, 30 Jun 2004 12:00:26 +0200
> And in that version the ' works fine!

Did you compile that version yourself, or did you get a precompiled
binary?  If the latter, where did you get the binary?

You see, Windows shells don't remove single quotes from arguments when
they pass them to programs.  So, if the ported Gawk needs to behave
like it dows on Unix, the Gawk program itself needs to remove the
quotes.  That is normally done in the program's startup code, or at
the very beginning of the `main' function.  I'm guessing that the
older port was somehow doing that, whereas the new one does not.

> I'm working on both UNIX as WINDOWS/DOS hosts/environments & the scripts i
> use must be portable...

The command line has nothing to do with the script it invokes.  You
cannot really use the same command line on Windows and on Unix, since
the quoting rules are specific to the shell.  If you want to use the
same command line syntax, install a Windows port of Bash and invoke
Gawk from there.

reply via email to

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