www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/07/10:14:35

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <20021007141426.38339.qmail@web40602.mail.yahoo.com>
Date: Mon, 7 Oct 2002 07:14:26 -0700 (PDT)
From: Barry Buchbinder <bbuchbinder AT yahoo DOT com>
Subject: RE: gawk not taking redirected input under command.com
To: Cygwin <cygwin AT cygwin DOT com>
MIME-Version: 1.0

cygwin1-20021007.dll fixes it, but a new bug is
revealed.

To remind you, this is on command.com on win98se with
all mounts binmode.

As before,
  C:\> gawk '{ print "!" $0 "!" }' autoexec.bat
works as expected placing a "!" at the beginning of
each line and a "!" at the end.
  C:\> gawk '{ print "!" $0 "!" }' < autoexec.bat
no longer gives the error message about "file `-' is a
directory".

The new bug was that only the leading "!" is inserted.
 In further testing
  C:\> gawk '{print "x" $0 "y"}' autoexec.bat
worked as expected with an "x" at the beginning of
each line and a "y" at the end.  But
  C:\> gawk '{print "x" $0 "y"}' < autoexec.bat
gave no "x" but "y" was at the *beginning* of the
line!
  C:\> gawk '{print $0 "yz" }' < autoexec.bat
showed that what was happening was that the "yz" was
*overwriting* the beginning of the line.
  C:\> gawk '{print "123" $0 "yz" }' < autoexec.bat
showed that the leading 123 was being inserted
correctly before "xy" overwrote the "12".

Any more data I could collect to help someone debug
this?  (I'm a user, not a programmer.)

- Barry

-----Original Message-----
From: Christopher Faylor [mailto:cgf AT redhat DOT com]
Sent: Saturday, October 05, 2002 1:37 pm
To: cygwin AT cygwin DOT com
Subject: Re: gawk not taking redirected input under
command.com


On Wed, Oct 02, 2002 at 08:14:26AM -0700, Barry
Buchbinder wrote:
>It's definitly cygwin's gawk doing it.
>
>  C:\> c:\cygwin\bin\gawk -f t < autoexec.bat
>  GAWK: t:3: fatal: file `-' is a directory

I'm not sure how or why this was fixed, but it seems
like this
is fixed in the current cygwin snapshots and so will
be fixed in
the 1.3.13 release.

We're still having some problems with the DLL, though,
so I don't
have an ETA for the official release.

In the meantime, try a snapshot:
http://cygwin.com/snapshots/ .

cgf


__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019