summaryrefslogtreecommitdiff
path: root/tests/include-exclude
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-08-13 18:19:16 -0500
committerJim Meyering <meyering@redhat.com>2010-08-13 18:58:39 -0500
commit9c45c193825d1f59e1d341e556ecf4adeb7a03a2 (patch)
tree45f3d1f2946c96503c5087e36706170ea9684b47 /tests/include-exclude
parent3569576a3304b51491be0a88d4659713d960674f (diff)
downloadgrep-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-exclude4
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