Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Message-ID: <3948E6CA.C08E8E5D@vinschen.de>
Date: Thu, 15 Jun 2000 16:23:06 +0200
From: Corinna Vinschen <corinna@vinschen.de>
Reply-To: cygwin <cygwin@sourceware.cygnus.com>
X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.14 i686)
X-Accept-Language: de, en
MIME-Version: 1.0
To: "Johnson, James, CIV, OSD/PA&E" <Jim.Johnson@OSD.PENTAGON.MIL>
CC: "'cygwin@sourceware.cygnus.com'" <cygwin@sourceware.cygnus.com>
Subject: Re: awk using program files
References: <9E08046F44D3D21191D000805FBEF79AF5E486@ddsmttayz051.pae.osd.mil>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

"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

