[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Grep --directories option
From: |
Paul Jarc |
Subject: |
Re: Grep --directories option |
Date: |
Fri, 30 May 2003 17:39:14 -0400 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) |
"Paul Eggert" <eggert@twinsun.com> wrote:
> * Change the default to be --directories='recurse'.
>
> This is simple and portable, and it's more useful than the current
> behavior.
I think skipping is more useful by default, since directories may
often appear accidentally in wildcard-generated lists. I suggest
making the default "skip with a warning":
$ mkdir foo
$ grep pattern foo; echo $?
grep: foo: skipping directory
1
The warning could be suppressed by an explicit --directories=skip
option. Hurd users can use a shell alias like grep='grep -d read' if
they like that behavior and if they're confident they won't specify
directories by accident.
paul
- Re: Grep --directories option, (continued)
- Re: Grep --directories option, Paul Eggert, 2003/05/30
- Re: Grep --directories option, Jeff Bailey, 2003/05/30
- Re: Grep --directories option, Patrick Strasser, 2003/05/30
- Re: Grep --directories option, Marcus Brinkmann, 2003/05/31
- Re: Grep --directories option, Paul Eggert, 2003/05/30
- Re: Grep --directories option, Alfred M. Szmidt, 2003/05/31
- Re: Grep --directories option, Marcus Brinkmann, 2003/05/31
- Re: Grep --directories option, James Morrison, 2003/05/30
- Re: Grep --directories option,
Paul Jarc <=
Re: Grep --directories option, Stepan Kasal, 2003/05/30