bug#16444: grep -r fails with "Bad file descriptor" for mingw-w64

2014-01-14 Thread Stephan T. Lavavej
Hi, I'm building grep 2.16 with mingw-w64, and it works (with color!) for grepping individual files, but not recursively: C:\Temp\gcc>build\src\grep --version build\src\grep (GNU grep) 2.16 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later

bug#16444: grep -r fails with "Bad file descriptor" for mingw-w64

2014-01-14 Thread Paul Eggert
Stephan T. Lavavej wrote: I don't believe this is specific to mingw-w64. Quite possibly it's specific to mingw, though. Mingw is low priority for us, but if someone like you with the motivation and experience can come up with a patch (ideally a patch to mingw), that might be nice.

bug#16444: grep -r fails with "Bad file descriptor" for mingw-w64

2014-01-14 Thread Stephan T. Lavavej
I've spent hours debugging this - it is definitely mingw/mingw-w64 specific. I don't really understand what's going on, but it appears that this is the same issue as http://lists.gnu.org/archive/html/bug-gnulib/2009-01/msg00370.html . I see that you committed http://lists.gnu.org/archive/html/b