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

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

Re: gawk version 3.1.3.1614


From: Eli Zaretskii
Subject: Re: gawk version 3.1.3.1614
Date: Wed, 30 Jun 2004 19:41:28 +0200

> 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]