diff options
author | Alain Magloire <alainm@rcsm.ee.mcgill.ca> | 2000-01-26 03:42:16 +0000 |
---|---|---|
committer | Alain Magloire <alainm@rcsm.ee.mcgill.ca> | 2000-01-26 03:42:16 +0000 |
commit | e0b1023fbe9440b04a662681641d51101fb6c512 (patch) | |
tree | fdcfe9818208c6c747e97d48be952a499fa08a10 /src/grep.c | |
parent | 4466b4b448cf470f781a48bf14736a391b70e54f (diff) | |
download | grep-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.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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; |