NetBSD Problem Report #39122

From mac@S.culver.net  Thu Jul 10 08:17:42 2008
Return-Path: <mac@S.culver.net>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id B15AF63B9AA
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 10 Jul 2008 08:17:42 +0000 (UTC)
Message-Id: <200807100817.m6A8HgkA003126@S.culver.net>
Date: Thu, 10 Jul 2008 01:17:42 -0700 (PDT)
From: mac@S.culver.net
Reply-To: mac@S.culver.net
To: gnats-bugs@gnats.NetBSD.org
Subject: /usr/bin/grep does not recognize -P flag
X-Send-Pr-Version: 3.95

>Number:         39122
>Category:       bin
>Synopsis:       /usr/bin/grep does not recognize -P flag
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 10 08:20:00 +0000 2008
>Closed-Date:    Thu Jun 12 07:52:40 +0000 2014
>Last-Modified:  Thu Jun 12 07:52:40 +0000 2014
>Originator:     mac@S.culver.net
>Release:        NetBSD 3.0.1 and NetBSD 4.0
>Organization:

>Environment:


System: NetBSD S.Culver.Net 3.0.1 NetBSD 3.0.1 (S) #0: Sun Jul 30 02:26:46 PDT 2006 mac@S.Culver.Net:/usr/obj/sys/arch/i386/compile/S i386
Architecture: i386
Machine: i386
>Description:
	grep -P reports The -P option is not supported, yet the doc says it should be
>How-To-Repeat:
	grep -P a
>Fix:


>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: apb@NetBSD.org
State-Changed-When: Fri, 18 Jul 2008 20:41:56 +0000
State-Changed-Why:
The reference to "-P" and "--perl-regexp" in the grep man page
has been removed.  Thank you for the report.


From: Alan Barrett <apb@cequrux.com>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/39122 CVS commit: src/gnu/dist/grep/doc
Date: Fri, 18 Jul 2008 20:40:47 +0000 (UTC)

 Module Name:	src
 Committed By:	apb
 Date:		Fri Jul 18 20:40:47 UTC 2008

 Modified Files:
 	src/gnu/dist/grep/doc: grep.1

 Log Message:
 Comment out references to the "-P"/"--perl-regexp" option,
 which is not supported on NetBSD.  Fixes PR 39122.


 To generate a diff of this commit:
 cvs rdiff -r1.13 -r1.14 src/gnu/dist/grep/doc/grep.1

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Mike Cheponis <mac@Wireless.Com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/39122 (/usr/bin/grep does not recognize -P flag)
Date: Fri, 18 Jul 2008 13:52:54 -0700 (PDT)

 Incidentally, I had a friend try this on his linux system, and the -P switch worked.

 Thanks,
 -Mike


 On Fri, 18 Jul 2008, apb@NetBSD.org wrote:

 > Date: Fri, 18 Jul 2008 20:41:57 +0000 (UTC)
 > From: apb@NetBSD.org
 > Reply-To: gnats-bugs@NetBSD.org
 > To: gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org, apb@NetBSD.org,
 >     mac@S.culver.net
 > Subject: Re: bin/39122 (/usr/bin/grep does not recognize -P flag)
 > 
 > Synopsis: /usr/bin/grep does not recognize -P flag
 >
 > State-Changed-From-To: open->closed
 > State-Changed-By: apb@NetBSD.org
 > State-Changed-When: Fri, 18 Jul 2008 20:41:56 +0000
 > State-Changed-Why:
 > The reference to "-P" and "--perl-regexp" in the grep man page
 > has been removed.  Thank you for the report.
 >
 >
 >

From: Alan Barrett <apb@cequrux.com>
To: gnats-bugs@NetBSD.org
Cc: netbsd-bugs@NetBSD.org
Subject: Re: bin/39122 (/usr/bin/grep does not recognize -P flag)
Date: Fri, 18 Jul 2008 23:04:32 +0200

 On Fri, 18 Jul 2008, Mike Cheponis wrote:
 >  Incidentally, I had a friend try this on his linux system, and the -P
 >  switch worked.

 Yes, it probably would work on linux.  NetBSD does not have the
 pcre regular expression library (except in pkgsrc).

From: Alan Barrett <apb@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/39122 CVS commit: src/gnu/dist/grep/doc
Date: Mon, 21 Jul 2008 09:15:12 +0000 (UTC)

 Module Name:	src
 Committed By:	apb
 Date:		Mon Jul 21 09:15:12 UTC 2008

 Modified Files:
 	src/gnu/dist/grep/doc: grep.1

 Log Message:
 Comment out references to the "-P"/"--perl-regexp" option,
 which is not supported on NetBSD.  Fixes PR 39122.


 To generate a diff of this commit:
 cvs rdiff -r1.13 -r1.14 src/gnu/dist/grep/doc/grep.1

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "David H. Gutteridge" <dhgutteridge@sympatico.ca>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: bin/39122 (/usr/bin/grep does not recognize -P flag)
Date: Wed, 11 Jun 2014 18:08:23 -0400

 While the man page was altered in this PR's associated commit, the
 usage() function in grep.c was not correspondingly changed, so users
 like myself can still get tripped up when grep --help tells us that

  -P, --perl-regexp         PATTERN is a Perl regular expression

 is an option, and it's not.

 Dave

State-Changed-From-To: closed->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Thu, 12 Jun 2014 07:42:05 +0000
State-Changed-Why:
related issue has popped p
(er, up)


From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/39122 CVS commit: src/gnu/dist/grep/src
Date: Thu, 12 Jun 2014 07:42:46 +0000

 Module Name:	src
 Committed By:	dholland
 Date:		Thu Jun 12 07:42:46 UTC 2014

 Modified Files:
 	src/gnu/dist/grep/src: grep.c

 Log Message:
 Hide the -P option in the usage message unless HAVE_LIBPCRE (which we
 don't have in base) as per PR 39122.


 To generate a diff of this commit:
 cvs rdiff -u -r1.14 -r1.15 src/gnu/dist/grep/src/grep.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Thu, 12 Jun 2014 07:52:40 +0000
State-Changed-Why:
fixed again, thanks


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.