[Top][All Lists]

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

Re: Grep --directories option

From: Alfred M. Szmidt
Subject: Re: Grep --directories option
Date: Fri, 30 May 2003 12:14:40 +0200

I added to the CC list.

   * BUT: grep 2.5 introduced a bug [1], which caused that grep behaved
     as if the default was ``skip'' on sustems where reading a directory
     is a faux pas.

I wouldn't call this a bug, I would call it that grep works as
expected on such systems.  It is even document in the grep manual.
>From (

     If an input file is a directory, use ACTION to process it.  By
     default, ACTION is `read', which means that directories are read
     just as if they were ordinary files (some operating systems and
     filesystems disallow this, and will cause `grep' to print error
     messages for every directory or silently skip them). If ACTION is
     `skip', directories are silently skipped.  If ACTION is `recurse',
     `grep' reads all files under each directory, recursively; this is
     equivalent to the `-r' option.

reply via email to

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