summaryrefslogtreecommitdiff
path: root/src/grep.c
diff options
context:
space:
mode:
authorAlain Magloire <alainm@rcsm.ee.mcgill.ca>2000-01-26 03:42:16 +0000
committerAlain Magloire <alainm@rcsm.ee.mcgill.ca>2000-01-26 03:42:16 +0000
commite0b1023fbe9440b04a662681641d51101fb6c512 (patch)
treefdcfe9818208c6c747e97d48be952a499fa08a10 /src/grep.c
parent4466b4b448cf470f781a48bf14736a391b70e54f (diff)
downloadgrep-e0b1023fbe9440b04a662681641d51101fb6c512.tar.gz
ChangeLog NEWS doc/grep.1 doc/grep.texi src/grep.c
Changes propose by P.E. * NEWS, doc/grep.1, doc/grep.texi: Add -I option. * src/grep.c (short_options, usage, main): Likewise. * doc/grep.texi: Fix some incorrect references to ASCII. * doc/grep.1: Simplify synopsis; sort options; mention environment variables; clean up some minor gaffes. * doc/grep.texi: Fix some errors in description of [:print:] and the like.
Diffstat (limited to 'src/grep.c')
-rw-r--r--src/grep.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/grep.c b/src/grep.c
index 21fbf3b6..9ac1a877 100644
--- a/src/grep.c
+++ b/src/grep.c
@@ -60,7 +60,7 @@ static int mmap_option;
/* Short options. */
static char const short_options[] =
-"0123456789A:B:C::EFGHUVX:abcd:e:f:hiLlnqrsuvwxyZz";
+"0123456789A:B:C::EFGHIUVX:abcd:e:f:hiLlnqrsuvwxyZz";
/* Non-boolean long options that have no corresponding short equivalents. */
enum
@@ -972,9 +972,10 @@ Output control:\n\
-H, --with-filename print the filename for each match\n\
-h, --no-filename suppress the prefixing filename on output\n\
-q, --quiet, --silent suppress all normal output\n\
- -a, --text equivalent to --binary-files=text\n\
--binary-files=TYPE assume that binary files are TYPE\n\
TYPE is 'binary', 'text', or 'without-match'.\n\
+ -a, --text equivalent to --binary-files=text\n\
+ -I equivalent to --binary-files=without-match\n\
-d, --directories=ACTION how to handle directories\n\
ACTION is 'read', 'recurse', or 'skip'.\n\
-r, --recursive equivalent to --directories=recurse.\n\
@@ -1231,6 +1232,9 @@ main (int argc, char **argv)
case 'H':
with_filenames = 1;
break;
+ case 'I':
+ binary_files = WITHOUT_MATCH_BINARY_FILES;
+ break;
case 'U':
#if O_BINARY
dos_use_file_type = DOS_BINARY;