Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Wed, 2 Oct 2002 10:13:48 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: gawk not taking redirected input under command.com Message-ID: <20021002141348.GB12462@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20021002124752 DOT 29041 DOT qmail AT web40604 DOT mail DOT yahoo DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021002124752.29041.qmail@web40604.mail.yahoo.com> User-Agent: Mutt/1.4i 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/