> Date: Mon, 19 Dec 2011 09:40:15 -0800
> From: Paul Eggert <[email protected]>
> CC: [email protected]
>
> 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.
No, this test doesn't grep a directory. It uses a directory as a file
to get the search pattern from. That's what the -f switch is about,
AFAIK. "grep --help" says:
-f, --file=FILE obtain PATTERN from FILE
> > The problem with "-f a/" is that on some systems (Windows), one cannot
> > fopen a directory.
>
> That should work under Cygwin
I wasn't talking about Cygwin; I don't use it. I'm using a native
(MinGW) Windows build of Grep.