[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: gawk bug
From: |
Simon H. Charbel |
Subject: |
RE: gawk bug |
Date: |
Wed, 26 Oct 2005 09:52:45 +0300 |
Hi, Bob
Thank you for you reply, but it didn't work
Regards,
Simon CHARBEL, IT AUDIT
-----Original Message-----
From: Bob Proulx [mailto:address@hidden
Sent: Wednesday, October 26, 2005 9:23 AM
To: Simon H. Charbel
Cc: address@hidden
Subject: Re: gawk bug
Simon H. Charbel wrote:
> I am using gawk on windows xp, when I am trying to use the following:
> gawk "{ print "test" }" the word "test" is not printed. The gawk
> version is 3.1.3.1614
There are several problems with your example.
* Your quoting is not correct. GNU awk needs to see the inner set of
quotes. In a bash shell all it would see is { print test }. That
would read as if test is a variable and not a literal string.
* You have not supplied any input. The {...} action will only be run
if there is input. The {...} action will be run for every line of
input that it can read.
You say you are running on MS-Windows and there I don't know if there
is a way to get the quotes to pass through. You are on your own
there. But in a bash shell one would use this example.
gawk 'BEGIN{ print "test"; }'
test
Bob
- gawk bug, Simon H. Charbel, 2005/10/25
- RE: gawk bug,
Simon H. Charbel <=
- RE: gawk bug, Simon H. Charbel, 2005/10/26