diff options
author | Jim Meyering <meyering@redhat.com> | 2010-08-13 18:19:16 -0500 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-08-13 18:58:39 -0500 |
commit | 9c45c193825d1f59e1d341e556ecf4adeb7a03a2 (patch) | |
tree | 45f3d1f2946c96503c5087e36706170ea9684b47 /tests/include-exclude | |
parent | 3569576a3304b51491be0a88d4659713d960674f (diff) | |
download | grep-9c45c193825d1f59e1d341e556ecf4adeb7a03a2.tar.gz |
make --include=FILE work once again
The semantics of excluded_file_name changed (when operating on
an "included" file name list).
* src/main.c (main): Adjust for changed semantics of excluded_file_name
simply by removing a negation.
* NEWS (Bug fixes): Mention this fix.
* tests/include-exclude: Add a test for this.
Reported by Joe Perches in http://savannah.gnu.org/bugs/?29876.
Diffstat (limited to 'tests/include-exclude')
-rw-r--r-- | tests/include-exclude | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/include-exclude b/tests/include-exclude index 0192b783..8a8e86cb 100644 --- a/tests/include-exclude +++ b/tests/include-exclude @@ -39,4 +39,8 @@ grep -r --include='a*' . x > out || fail=1 # no need to sort compare out exp-a || fail=1 +# --include (without --recursive) uses different code +grep --include=a a x/* > out || fail=1 +compare out exp-a || fail=1 + Exit $fail |