bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep-dir test


From: Eli Zaretskii
Subject: Re: grep-dir test
Date: Mon, 19 Dec 2011 22:24:14 +0200

> Date: Mon, 19 Dec 2011 11:09:30 -0700
> From: Eric Blake <address@hidden>
> CC: address@hidden
> 
> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]