help-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grep --directories option


From: Marcus Brinkmann
Subject: Re: Grep --directories option
Date: Sat, 31 May 2003 21:00:09 +0200
User-agent: Mutt/1.5.4i

On Fri, May 30, 2003 at 05:32:06PM -0700, Paul Eggert wrote:
> > From: prj@po.cwru.edu (Paul Jarc)
> > Date: Fri, 30 May 2003 17:39:14 -0400
> 
> > I suggest making the default "skip with a warning":
> > $ mkdir foo
> > $ grep pattern foo; echo $?
> > grep: foo: skipping directory
> 
> OK, how about this solution instead?
> 
> * Have --directory='read' be the default, but if grep determines that a
>   read fails because it is reading a directory, it outputs a diagnostic
>   like this:
> 
>   grep: foo: skipping unreadable directory
> 
>   grep can then go on to the next file, but it must exit with status 2 if
>   this diagnostic is generated.

That would be good, I think.
 
Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' GNU      http://www.gnu.org    marcus@gnu.org
Marcus Brinkmann              The Hurd http://www.gnu.org/software/hurd/
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de/




reply via email to

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