Subject: bin/1879: more doesn't support extended regular expressions
To: None <gnats-bugs@gnats.netbsd.org>
From: James E. Bernard <jbernard@geek.mines.edu>
List: netbsd-bugs
Date: 12/31/1995 18:03:31
>Number:         1879
>Category:       bin
>Synopsis:       /usr/bin/more doesn't support egrep-like extended regular expressions
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 31 20:20:01 1995
>Last-Modified:
>Originator:     Jim Bernard
>Organization:
	Speaking for myself
>Release:        1.1
>Environment:
System: NetBSD zoo 1.1 NetBSD 1.1 (ZOO) #0: Sun Dec 3 12:56:42 MST 1995 local@zoo:/home/local/netbsd-1.1/usr/src/sys/arch/i386/compile/ZOO i386


>Description:
	/usr/bin/more doesn't support egrep-like extended regular expressions
>How-To-Repeat:
	more "-/pat1|pat2" somefile
		(will only find the literal pattern "pat1|pat2", if it exists)
>Fix:
--- prim.c-dist	Fri Oct 13 21:19:06 1995
+++ prim.c	Thu Dec 28 18:28:02 1995
@@ -640,7 +640,7 @@
 		}
 		else
 			regfree(cpattern);
-		if (regcomp(cpattern, pattern, 0))
+		if (regcomp(cpattern, pattern, REG_EXTENDED))
 		{
 			error("Invalid pattern");
 			return(0);

>Audit-Trail:
>Unformatted: