Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <9E08046F44D3D21191D000805FBEF79AF5E488@ddsmttayz051.pae.osd.mil> From: "Johnson, James, CIV, OSD/PA&E" To: "'cygwin'" Subject: RE: awk using program files Date: Thu, 15 Jun 2000 17:16:41 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain 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[SMTP:corinna AT vinschen DOT de] > Reply To: cygwin > Sent: Thursday, June 15, 2000 10:23 AM > To: Johnson, James, CIV, OSD/PA&E > Cc: 'cygwin AT sourceware DOT cygnus DOT com' > 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 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 AT sourceware DOT cygnus DOT com