[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with File input in gawk on Win32
From: |
Darrel Hankerson |
Subject: |
Re: Problem with File input in gawk on Win32 |
Date: |
Tue, 25 Sep 2001 06:19:43 -0500 |
Reza Ghorieshi <address@hidden> writes:
c:\gawk -f program-file input-file1
Unfortunately, the input-file is never read by the program. Thus, given
a none empty input file, and a program file containing: BEGIN {print
$0} it prints nothing.
I suspect it prints a newline.
However, c:\gawk "{print $0}" input-file1 works fine.
You are comparing
BEGIN {print $0}
with
{print $0}
in your examples. These are not the same. Remove BEGIN in program-file,
and run the test again.
--Darrel Hankerson address@hidden