summaryrefslogtreecommitdiff
path: root/usr/src/cmd/grep/grep.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/grep/grep.c')
-rw-r--r--usr/src/cmd/grep/grep.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/usr/src/cmd/grep/grep.c b/usr/src/cmd/grep/grep.c
index cb49a807c9..3658af2e35 100644
--- a/usr/src/cmd/grep/grep.c
+++ b/usr/src/cmd/grep/grep.c
@@ -34,9 +34,8 @@
*
*/
-/* Copyright 2017 Nexenta Systems, Inc. All rights reserved. */
-
/*
+ * Copyright 2018 Nexenta Systems, Inc.
* Copyright 2013 Damian Bogel. All rights reserved.
*/
@@ -284,7 +283,6 @@ main(int argc, char **argv)
case 'x': /* POSIX: full line matches */
xflag++;
- regflags |= REG_ANCHOR;
break;
case 'E': /* POSIX: Extended RE's */
@@ -704,9 +702,7 @@ fixpatterns(void)
int rv, fix_pattern, npatterns;
/*
- * As REG_ANCHOR flag is not supported in the current Solaris,
- * need to fix the specified pattern if -x is specified with
- * grep or egrep
+ * Fix the specified pattern if -x is specified.
*/
fix_pattern = !Fflag && xflag;