bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#37212: Incorrect --exclude description with 'grep --help'


From: Duncan Moore
Subject: bug#37212: Incorrect --exclude description with 'grep --help'
Date: Wed, 28 Aug 2019 17:25:54 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

'grep --help' incorrectly states that the --exclude option operates on
directories. Here's the suggested change to the help text:

-      --exclude=GLOB        skip files and directories matching GLOB
+      --exclude=GLOB        skip files matching GLOB

It might also be worthwhile changing 'that match' to 'matching' in these
2 options to give consistent phrasing across the 4 include/exclude
options, to make it a bit easier for the user to compare them:

-      --include=GLOB        search only files that match GLOB (a file
pattern)
+      --include=GLOB        search only files matching GLOB (a file
pattern)

-      --exclude-dir=GLOB    skip directories that match GLOB
+      --exclude-dir=GLOB    skip directories matching GLOB






reply via email to

[Prev in Thread] Current Thread [Next in Thread]