This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: gawk not taking redirected input under command.com
- From: Christopher Faylor <cgf-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 2 Oct 2002 10:13:48 -0400
- Subject: Re: gawk not taking redirected input under command.com
- References: <20021002124752.29041.qmail@web40604.mail.yahoo.com>
- Reply-to: cygwin at cygwin dot 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/