[Top][All Lists]
[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.
- grep-dir test, Eli Zaretskii, 2011/12/19
- Re: grep-dir test, Paul Eggert, 2011/12/19
- Re: grep-dir test,
Eli Zaretskii <=
- Re: grep-dir test, Eric Blake, 2011/12/19
- Re: grep-dir test, Eli Zaretskii, 2011/12/19
- Re: grep-dir test, Eric Blake, 2011/12/19
- Re: grep-dir test, Eli Zaretskii, 2011/12/19
- Re: grep-dir test, Eli Zaretskii, 2011/12/20
- Re: grep-dir test, Paolo Bonzini, 2011/12/20
- Re: grep-dir test, Eli Zaretskii, 2011/12/20
- Re: grep-dir test, Paolo Bonzini, 2011/12/20
- Re: MS-Windows build of Grep (was: grep-dir test), Eli Zaretskii, 2011/12/24