Micah Cowan <[EMAIL PROTECTED]> writes:

>> I don't know.  The reason directories are matched separately from
>> files is because files often *don't* match the pattern you've chosen
>> for directories.  For example, -X/etc should exclude anything under
>> /etc, such as /etc/passwd, but also /etc/foo/bar/baz.  Since '*' in
>> shell-like globs doesn't match '/', it is impossible to write a glob
>> expression to match all files arbitrarily deep under a directory.
>
> Perhaps a "**" wildcard, that matches /, would be useful; then we could
> combine the meanings of -X and -R (and, -I and -A).

That sounds pretty neat.  I wonder if it would be compatible with
zsh's **, which matches any number of subdirectories.  (For example,
zsh's **/*.c is roughly equivalent to `find . -name "*.c"` in other
shells.)

Reply via email to