[Top][All Lists]

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

bug#33699: Multi-component paths ignored by --{exclude, include}-dir ?

From: Lyude Paul
Subject: bug#33699: Multi-component paths ignored by --{exclude, include}-dir ?
Date: Mon, 10 Dec 2018 18:48:22 -0500
User-agent: Evolution 3.30.2 (3.30.2-2.fc29)

Hi! Sorry for bugging you, but I noticed something a little peculiar about
grep that I wasn't expecting, and I'm not sure if this is a bug or not.
I've been trying to use grep in one of my scripts to exclude files from
any directories starting with Documentation/output using --exclude-dir.

grep vcpi_ . -rl --exclude-dir Documentation/output

However, this doesn't seem to work at all as it returns:


I would have thought maybe this could be worked around by using
--exclude instead:

grep vcpi_ . -rl --exclude '.*Documentation/output.*'

But the result is the same. Is this intentional, or an actual bug?
Either way, at the very least it seems like something that should be
clarified in the man page.
        Lyude Paul

reply via email to

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