bug#21027: --exclude-dir matches search dir

2015-07-10 Thread Aron Griffis
This generates output: $ grep -rl --exclude-dir=usr LINUX /usr/include and this doesn't: $ grep -rl --exclude-dir='usr*' LINUX /usr/include This feels like a bug. My actual use-case is more like the following, but the above seems like a more universal test case. $ grep -rl --exclude-dir='.*' /

bug#21026: --exclude-dir matches search dir

2015-07-10 Thread Aron Griffis
This generates output: $ grep -rl --exclude-dir=usr LINUX /usr/include and this doesn't: $ grep -rl --exclude-dir='usr*' LINUX /usr/include This feels like a bug. My actual use-case is more like the following, but the above seems like a more universal test case. $ grep -rl --exclude-dir='.*' /