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 20:03:49 +0200

> Date: Mon, 19 Dec 2011 09:40:15 -0800
> From: Paul Eggert <address@hidden>
> CC: address@hidden
> 
> 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.



reply via email to

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