help-hurd
[Top][All Lists]
Advanced

[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




reply via email to

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