diff options
author | Jim Meyering <meyering@redhat.com> | 2012-04-27 11:42:23 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-04-30 09:49:21 +0200 |
commit | c6254ca5fb9b3b513e54bd2a8de94c34af39fbc6 (patch) | |
tree | 40282e8ac5c39f337c5b5b845ceeac0e4061788c | |
parent | 69d06a2c3c7cdcd296da4fe92d7ed7256c4d0395 (diff) | |
download | grep-c6254ca5fb9b3b513e54bd2a8de94c34af39fbc6.tar.gz |
grep: -K is not an option: remove it from list
The presence of "K" in the short-option string meant that
an erroneous "grep -K ..." would fail with a bare Usage/Try...
message, without the usual "invalid option -- 'K'". With this
removal, now grep prints the expected invalid option diagnostic.
* src/main.c (short_options): Remove "K".
Reported by Петр Досычев in
http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4488
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -276,7 +276,7 @@ static struct exclude *included_patterns; static struct exclude *excluded_directory_patterns; /* Short options. */ static char const short_options[] = -"0123456789A:B:C:D:EFGHIPTUVX:abcd:e:f:hiKLlm:noqRrsuvwxyZz"; +"0123456789A:B:C:D:EFGHIPTUVX:abcd:e:f:hiLlm:noqRrsuvwxyZz"; /* Non-boolean long options that have no corresponding short equivalents. */ enum |