> Date: Mon, 19 Dec 2011 11:09:30 -0700 > From: Eric Blake <[email protected]> > CC: [email protected] > > Gnulib is able to emulate fopen(".", "r") with sane semantics on mingw > (by opening the null device under the hood, so that any actual fread() > of the FILE* will return immediate EOF); but it looks like grep is not > using that gnulib module.
Thanks. FWIW, it doesn't look like anyone cares about Grep working on Windows as a native program, because the simplest commands, something like "grep -R foo .", cause Grep to emit an error message and quit (I already fixed this in my sandbox). But that's not due to the issue being discussed, and opening the null device won't help here. Anyway, opening the null device would simply emulate an empty file, which is why I asked what was the purpose of using a directory for the search pattern instead of using an empty file.
