GNU bug report logs -
#10355
Add an option to {md5,sha*} to ignore directories
Previous Next
Reported by: "Gilles Espinasse" <g.esp <at> free.fr>
Date: Fri, 23 Dec 2011 13:47:02 UTC
Severity: wishlist
Tags: moreinfo, notabug, wontfix
Done: Pádraig Brady <P <at> draigBrady.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Alan Curry wrote:
> Do you suppose we can convince GNU grep's maintainer to follow this
> philosphy?
Too late. GNU grep already has --recursive. I think adding
--recursive to grep was a mistake. It then requires most of 'find' to
be added to it too. (--include*, --exclude*)
> $ mkdir d
> $ touch d/foo
> $ grep foo *
> $
>
> It opens and reads, gets EISDIR, and intentionally skips printing it. Grr.
All silently. For most cases I think your example would have been a a
case of programming error. It would be better to make those cases noisy.
The above seems to be a bug since it violates the documented action of
'read' for directories. It appears to be skipping by default. Even
when --directories=read is specified.
> But wait, there's a -d option with 3 alternatives for what to do with
> directories! ...and none of choices is "just print the EISDIR so I'll know
> if I accidentally grepped a directory".
And the problems just go on and on.
Bob
This bug report was last modified 13 years and 158 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.