For Programmers: Free Programming Magazines  


Home > Archive > AWK > April 2005 > Re: Getting command from ARGV[1] doesn't work in AWK









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Getting command from ARGV[1] doesn't work in AWK
Kenny McCormack

2005-04-09, 8:55 pm

In article <HemdnYGh7eDeUczfRVn-2Q@gwi.net>, Jim Hart <jhart@bates.edu> wrote:
....
>It silently does nothing at all. There is no file /tmp/output and there
>is no file in the local directory called 'cat > /tmp/output', nor one
>called 'cat', for that matter.


OK - sounds like a buggy AWK to me.

>Change the first line of the script to:
>
>#!/usr/local/bin/gawk -f
>
>and the last case works.


Thank you for saving us all the trouble of testing it under gawk.
Basically, you won't get much support here for problems specific to (buggy)
vendor-supplied AWKs.

>AWK version is:
>
>localhost ~/tmp bash2.05$ /usr/bin/awk -V
>awk version 981019
>
>as distributed with Mac OS X 10.3.


Yup - sounds like a buggy AWK to me.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com