On 12/19/11 09:21, Eli Zaretskii wrote:
> why does it use an empty directory and not an empty file?

Because it's testing that grep does the right thing when
asked to grep a directory.  It doesn't matter that the
directory is empty; all that matters is that it's a
directory.

> The problem with "-f a/" is that on some systems (Windows), one cannot
> fopen a directory.

That should work under Cygwin; is it not working?
If so, it sounds like a Cygwin bug which should get
fixed.  I don't think grep works on Windows outside
the Cygwin environment.

Reply via email to