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


On Wed, Oct 02, 2002 at 05:47:52AM -0700, Barry Buchbinder wrote:
>I have a problem with gawk.
>
>Under bash, it works as expected.
>
>Under command.com (win98se) it does the following when
>taking input from a pipe or by redirection.
>
>  C:\> cat autoexec.bat | gawk '{ print "!" $0 "!" }'
>  GAWK: cmd. line:2: fatal: file `-' is a directory
>
>  C:\> gawk '{ print "!" $0 "!" }' < autoexec.bat
>  GAWK: cmd. line:2: fatal: file `-' is a directory

Sounds like you have another, non-cygwin version of gawk on your
system.

cgf
--
Please do not send me personal email with cygwin questions.
Use the resources at http://cygwin.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]