| delorie.com/archives/browse.cgi | search |
| 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 |
| Date: | Wed, 2 Oct 2002 10:13:48 -0400 |
| From: | Christopher Faylor <cgf-cygwin AT cygwin DOT com> |
| 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 |
| 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |