summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2014-06-12 07:42:46 +0000
committerdholland <dholland@NetBSD.org>2014-06-12 07:42:46 +0000
commit4d6615b288ca0effd2f0f322280ec80b78a8185d (patch)
treef5cf0e218314684a1b311a26a8def8f8840fe448 /gnu
parent83ce47c1e9e74ea0cb26e52d3430e987fcb100eb (diff)
Hide the -P option in the usage message unless HAVE_LIBPCRE (which we
don't have in base) as per PR 39122.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/dist/grep/src/grep.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gnu/dist/grep/src/grep.c b/gnu/dist/grep/src/grep.c
index 8b23428e4ba..c86be9e8f67 100644
--- a/gnu/dist/grep/src/grep.c
+++ b/gnu/dist/grep/src/grep.c
@@ -1,4 +1,4 @@
-/* $NetBSD: grep.c,v 1.14 2013/01/05 09:40:16 apb Exp $ */
+/* $NetBSD: grep.c,v 1.15 2014/06/12 07:42:46 dholland Exp $ */
/* grep.c - main driver file for grep.
Copyright 1992, 1997-1999, 2000 Free Software Foundation, Inc.
@@ -1066,8 +1066,11 @@ Regexp selection and interpretation:\n"), program_name);
printf (_("\
-E, --extended-regexp PATTERN is an extended regular expression\n\
-F, --fixed-strings PATTERN is a set of newline-separated strings\n\
- -G, --basic-regexp PATTERN is a basic regular expression\n\
+ -G, --basic-regexp PATTERN is a basic regular expression\n"));
+#if HAVE_LIBPCRE
+ printf (_("\
-P, --perl-regexp PATTERN is a Perl regular expression\n"));
+#endif
printf (_("\
-e, --regexp=PATTERN use PATTERN as a regular expression\n\
-f, --file=FILE obtain PATTERN from FILE\n\