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

2018-10-06 Thread Paul Eggert
Houder wrote: 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 That's expected, as the code needs to run lseek in some places on Cygwin where it's not needed on G

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

2018-10-06 Thread Houder
On 2018-10-06 22:12, Paul Eggert wrote: Houder wrote: 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 That's expected, as the code needs to run lseek in some pl

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

2018-10-06 Thread Paul Eggert
Houder wrote: Old version? The version used by Cygwin is based on 3.0. As far as I can tell, the most recent tarball is 3.1 ? Yes, that's the most recent release. When building grep 3.1 for use with GDB, I suggest turning off optimization. Something like this: make clean make CFLAGS='-