diff options
author | Jim Meyering <meyering@redhat.com> | 2012-01-03 12:01:51 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-01-03 17:12:46 +0100 |
commit | 39f04f2768cd6c2a21631349a17597a9fc4de418 (patch) | |
tree | 979fa8eed1450e493b1d35a1361a256bf6f84682 /src | |
parent | 8ca76081a985a0dda3bddf8f172b794495efea33 (diff) | |
download | grep-39f04f2768cd6c2a21631349a17597a9fc4de418.tar.gz |
deprecate the --mmap option
* src/main.c (main): Deprecate the --mmap option: issue a warning
when it is used.
(usage): Change description.
* doc/grep.texi (Other Options): Document the new behavior.
* NEWS (Changes in behavior): Mention it.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1465,7 +1465,7 @@ Miscellaneous:\n\ -v, --invert-match select non-matching lines\n\ -V, --version print version information and exit\n\ --help display this help and exit\n\ - --mmap ignored for backwards compatibility\n")); + --mmap deprecated no-op; evokes a warning\n")); printf (_("\ \n\ Output control:\n\ @@ -2121,6 +2121,9 @@ main (int argc, char **argv) break; case MMAP_OPTION: + error (0, 0, _("the --mmap option has been a no-op since 2010")); + break; + case 0: /* long options */ break; |