[Top][All Lists]

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

Re: Problem with win32 version

From: Stepan Kasal
Subject: Re: Problem with win32 version
Date: Fri, 25 Feb 2005 14:16:30 +0100
User-agent: Mutt/1.4.1i


On Fri, Feb 25, 2005 at 01:43:26PM +0100, Patrick Marquetecken wrote:
> I'm using version the exe.
> I i try someting like:
> C:\Program Files\GnuWin32\bin>gawk -F: '{ print $1 }' c:/etc/passwd
> I get this error
> gawk: cmd. line:1: '{
> gawk: cmd. line:1: ^ invalid char ''' in expression
> I run it in a box box not cygwin, its on a Win2003 server.

on Unix style systems, including cygwin, it's the duty of the shell to
remove the quotes.  So one option is to run the command from bash, not
from standard windows shell (cmd.exe).

Some ports of unix-like utils interpret the quotes on their own, eg. the
djgpp port of gawk.  This can be a suitable solution for you.

Yet the easiest workaround is to run
        gawk -f program.awk
and have the program in a separate text file.

        Stepan Kasal

reply via email to

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