Thanks for the bug report. I installed the attached (slightly different) patch
to fix the bug and inconsistency.
>From 61bbb574dcf350830b526bea61250e30d95057d0 Mon Sep 17 00:00:00 2001
From: Paul Eggert <egg...@cs.ucla.edu>
Date: Thu, 2 Jan 2020 01:54:47 -0800
Subject: [PATCH] doc: fix --exclude description in man page
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Problem reported by Duncan Moore (Bug#37212).
* src/grep.c (usage): Fix incorrect statement about --exclude
and directories.  Standardize on “that match GLOB” instead
of “matching GLOB”.
---
 src/grep.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/grep.c b/src/grep.c
index 35d563d..7ba602d 100644
--- a/src/grep.c
+++ b/src/grep.c
@@ -1970,8 +1970,8 @@ Output control:\n\
       printf (_("\
       --include=GLOB        search only files that match GLOB (a file pattern)"
                 "\n\
-      --exclude=GLOB        skip files and directories matching GLOB\n\
-      --exclude-from=FILE   skip files matching any file pattern from FILE\n\
+      --exclude=GLOB        skip files that match GLOB\n\
+      --exclude-from=FILE   skip files that match any file pattern from FILE\n\
       --exclude-dir=GLOB    skip directories that match GLOB\n\
 "));
       printf (_("\
-- 
2.17.1

Reply via email to