| delorie.com/archives/browse.cgi | search |
| From: | mcdougall AT agecon DOT purdue DOT edu ("Robert A McDougall") |
| Subject: | bug in bash/pipe/gawk in b17.1 |
| 2 Apr 1997 22:21:08 -0800 : | |
| Approved: | cygnus DOT gnu-win32 AT cygnus DOT com |
| Distribution: | cygnus |
| Message-ID: | <AA00865E9.cygnus.gnu-win32@agecon.purdue.edu> |
| Original-To: | gnu-win32 AT cygnus DOT com |
| X-mailer: | Pegasus Mail for Windows (v2.53/R1) |
| Original-Sender: | owner-gnu-win32 AT cygnus DOT com |
Under bash, gawk seems to have some difficulty with ends of
pipes: e.g.,
---- -------- -------- --------
C:\>echo foo | gawk '{print}'
foo
C:\>bash
$ echo foo | gawk '{print}'
foo
gawk: cmd. line:1: (FILENAME=- FNR=1) fatal: error reading
input: Bad file number
$ echo $?
2
$ /cygnus/H-i386-cygwin32/bin/echo foo | gawk '{print}'
foo
gawk: cmd. line:1: (FILENAME=- FNR=1) fatal: error reading
input: Bad file number
$ echo $?
2
---- -------- -------- --------
This is with Win95 with FAT32.
robert mcdougall
ph (765) 496 2798 fax (765) 496 1224
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |