This is the mail archive of the cygwin@cygwin.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]
Other format: [Raw text]

RE: gawk not taking redirected input under command.com


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@redhat.com]
Sent: Saturday, October 05, 2002 1:37 pm
To: cygwin@cygwin.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/


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