| www.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 |
| Message-ID: | <001d01c26c40$d015edc0$5c16989e@oemcomputer> |
| Reply-To: | "Peter S Tillier" <peter_tillier AT yahoo DOT co DOT uk> |
| From: | "Peter S Tillier" <peter_tillier AT yahoo DOT co DOT uk> |
| To: | "Cygwin" <cygwin AT cygwin DOT com> |
| References: | <20021004125549 DOT 59785 DOT qmail AT web40602 DOT mail DOT yahoo DOT com> |
| Subject: | Re: gawk not taking redirected input under command.com |
| Date: | Sat, 5 Oct 2002 08:28:28 +0100 |
| Organization: | Private |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000 |
----- Original Message -----
From: "Barry Buchbinder" <bbuchbinder AT yahoo DOT com>
To: "Cygwin" <cygwin AT cygwin DOT com>
Sent: Friday, October 04, 2002 1:55 PM
Subject: RE: gawk not taking redirected input under command.com
> I get the same problems under under win95cmd.exe. It
> fails with redirection but not reading input from a
> file:
>
> C:\> c:\cygwin\bin\gawk -f t < autoexec.bat
> gawk: t:3: fatal: file `-' is a directory
>
> Running under strace and back under command.com I get
> the following:
>
> C:\> type t | c:\cygwin\bin\strace -o strace.out
> c:\cygwin\bin\gawk -f t
> gawk: t:3: fatal: file `-' is a directory
>
> I've attached strace's output.
>
> Might the fact that the line number quoted is *after*
> the end of the file tell us something? (t has 2 lines
> but the error is in line 3. When the script is on the
> command line, the error is in line 2.)
>
> Thanks again,
>
> - Barry Buchbinder
>
On my system (Win98SE) using Win95Cmd I get (with Cygwin gawk-3.1.1-3):
C:\WINDOWS>\cygwin\bin\gawk "BEGIN {print \"hi\"}; END {print \"bye\"}"
<\autoexec.bat
hi
gawk: cmd. line:1: fatal: file `-' is a directory
C:\WINDOWS>
OTOH:
C:\WINDOWS>\cygwin\bin\gawk "BEGIN {print \"hi\"};END {print \"bye\"}"
\autoexec.bat
hi
bye
C:\WINDOWS>
works fine.
I don't get this problem if I run the GNUWin32 port of gawk-3.1.0-2 or
the DJGPP version of gawk-3.1.1 at a Win95Cmd command line. So it looks
like there's problem with the Cygwin port running under command.com or
win95cmd somewhere. I suppose it isn't something to do with the cygwin
dlls not being in the path? Although I'd expect some missing dll
messages if that were the case.
Peter S Tillier peter_tillier AT yahoo DOT co DOT uk
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |