GNU bug report logs - #32943
grep pattern < fifo fails on Cygwin (and MinGW), but not on Linux

Previous Next

Package: grep;

Reported by: Houder <houder <at> xs4all.nl>

Date: Fri, 5 Oct 2018 10:15:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Houder <houder <at> xs4all.nl>
Subject: bug#32943: closed (Re: bug#32943: grep pattern < fifo fails on
 Cygwin (and MinGW), but not on Linux)
Date: Thu, 02 Jan 2020 01:10:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#32943: grep pattern < fifo fails on Cygwin (and MinGW), but not on Linux

which was filed against the grep package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 32943 <at> debbugs.gnu.org.

-- 
32943: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=32943
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Houder <houder <at> xs4all.nl>
Cc: 32943-done <at> debbugs.gnu.org
Subject: Re: bug#32943: grep pattern < fifo fails on Cygwin (and MinGW), but
 not on Linux
Date: Wed, 1 Jan 2020 17:09:45 -0800
On 10/8/18 11:10 AM, Houder wrote:
> We have to wait until Corinna Vinschen returns from holidays (end of
> october), because Corinna Vinschen is the only one who can deal with
> the executive.

Corinna later pushed a patch for this Cygwin bug <https://cygwin.com/ml/cygwin/2018-10/msg00087.html> so I'm closing this old grep bug report.

[Message part 3 (message/rfc822, inline)]
From: Houder <houder <at> xs4all.nl>
To: bug-grep <at> gnu.org
Subject: grep pattern < fifo fails on Cygwin (and MinGW), but not on Linux
Date: Fri, 05 Oct 2018 12:02:47 +0200
Hi,

Yes, I might not be following "procedure" (I do not know), but I decided
to report this failure, because I canNOT ascertain whether "the list" is
aware of this failure or not.

grep fails on Cygwin (and apparently also on MinGW), as follows:

@@ mkfifo fifo
@@ echo X > fifo & grep . < fifo # X may be omitted
[1] <some procid>
grep: (standard input): Invalid argument
[1]+  Done                    echo > fifo

This failure does not occur on Linux.

As far as I can tell, the maintainer of grep on Cygwin, hardly modifies
the source code of grep. Therefore I surmise? that the original tarball
must be in error.

I applied strace to "grep . < fifo", and as far as I can tell "an lseek
is applied to the fifo", which obviously fails.

The "lseek" occurs on Cygwin (and MinGW?), but not on Linux (as far as
I can tell, the code that is executed on Cygwin is not the same as the
one that is executed on Linux).

The failure does not occur if e.g. cut is substituted for grep.

@@ mkfifo fifo
@@ echo X > fifo & cut -f1 < fifo # X may be omitted
No error ...

Q: are you aware of this failure?

Regards,
Henri



This bug report was last modified 5 years and 135 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.