I have noticed an annoying change in
grep -r --exclude-dir behaviour.
Consider the following test:
mkdir -p ./d1/d2 echo 'randomtext' > ./d1/d2/testfile grep -nr --exclude-dir ./d1/d2 'randomtext'
An expected behaviour is that grep would not show "testfile" as it should be filtered via
--exclude-dir. That works for grep v2.10 and 2.11. However for versions 2.12+ the output is:
Moreover, the behaviour is inconsistent:
grep -nr --exclude-dir d1 'randomtext' # or grep -nr --exclude-dir d2 'randomtext'
Work fine, without any output, as expected.
I believe that it is a bug. Can you please confirm my theory? Thank you.