This is the mail archive of the 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

Thanks so much for your kind response.  I can certainly remove the \r
characters from my awk scripts.  In past editions, setup has given me mount
points with flags of "text!=binary".  Most recent setup gives mount points
with flags of "binmode."  Is there a reason for the change?  Meanwhile, I am
off to learn more about mount points for cygwin on NT.
Thanks again, I appreciate your help.
Jim Johnson

> ----------
> From: 	Corinna Vinschen[]
> Reply To: 	cygwin
> Sent: 	Thursday, June 15, 2000 10:23 AM
> To: 	Johnson, James, CIV, OSD/PA&E
> Cc: 	''
> Subject: 	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

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