This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: awk using program files


"Johnson, James, CIV, OSD/PA&E" wrote:
> 
> Hello,
> I have a question on the most recent release of cygwin:  when using awk with
> a program file, awk seems to have trouble reading past the first new line in
> the program file.  If t.awk contains:
>         {
>                 print $0
>         }
> then the command awk -f t.awk <file> generates an error message in the first
> line.  The message indicates that awk is having difficulty with the
> character immediately after the first curly bracket.
> 
> Perhaps I did not install correctly.  Does anyone else have this problem?
> Thoughts on what to do?
> Thanks in advance.
> Jim Johnson

The script contains DOS line endings but the file is
in a binary mounted directory. Try to get rid of the
CR's in the script. awk isn't yet able to ignore the
CR's by itself.

Corinna

-- 
Corinna Vinschen
Cygwin Developer
Cygnus Solutions, a Red Hat company

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]