summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Pankov <yuri.pankov@nexenta.com>2018-01-29 01:06:12 +0300
committerDan McDonald <danmcd@joyent.com>2018-02-02 17:33:30 -0500
commit925beec7a40f23f8a7663cf5e8289a88f9688e87 (patch)
treece5b172b36d0963406fc5702b69b86f2ae67fde9
parent16b8cff5614360cedee81496774b4933d65c2a62 (diff)
downloadillumos-joyent-925beec7a40f23f8a7663cf5e8289a88f9688e87.tar.gz
9012 cmd/grep: don't use obsolete REG_ANCHOR
Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Dan McDonald <danmcd@joyent.com>
-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;