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

2020-01-02 Thread Houder
On 2020-01-02 02:09, Paul Eggert wrote: 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

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

2020-01-01 Thread Paul Eggert
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 so I

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

2018-10-09 Thread Houder
On 2018-10-08 20:10, Houder wrote: [snip] Here NtQueryInformationFile() is called, which fails with s/ NtQueryInformationFile / NtSetInformationFile / Set! Not Query. ERROR_INVALID_PARAMETER (87), which Cygwin turns into EINVAL (22). We have to wait until Corinna Vinschen returns from holi

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

2018-10-08 Thread Houder
On 2018-10-08 17:49, Paul Eggert wrote: On 10/8/18 12:35 AM, Houder wrote: grep terminates with an error on Cygwin because lseek() on Cygwin fails to ascertain that it is applied to a FIFO. That sounds like a bug in Cygwin, then. Can you find out exactly why it occurs, by using GDB within Cy

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

2018-10-08 Thread Paul Eggert
On 10/8/18 12:35 AM, Houder wrote: grep terminates with an error on Cygwin because lseek() on Cygwin fails to ascertain that it is applied to a FIFO. That sounds like a bug in Cygwin, then. Can you find out exactly why it occurs, by using GDB within Cygwin? Then you can file a bug report wit

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

2018-10-08 Thread Houder
On 2018-10-06 22:12, Paul Eggert wrote: [snip} My guess is that you've got an old version of grep on Cygwin, and need to upgrade to the current version. If you still have problems with the latest version, please investigate via GDB and/or other means exactly why grep is failing for you ... Hi

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

2018-10-07 Thread Houder
On 2018-10-07 01:45, Paul Eggert wrote: [snip] Try running grep as follows $ gdb src/grep ... (gdb) run . < fifo For those reading this thread: - https://stackoverflow.com/questions/9031554/gdb-input-redirection-using-cygwin ( gdb input redirection using cygwin ) "It seems that in

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='-

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: 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-05 Thread Houder
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 #