From nobody@FreeBSD.org  Tue Aug 24 23:50:39 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id DF3A91065674
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 24 Aug 2010 23:50:38 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id CF2168FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 24 Aug 2010 23:50:38 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o7ONocik098946
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 24 Aug 2010 23:50:38 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o7ONochH098945;
	Tue, 24 Aug 2010 23:50:38 GMT
	(envelope-from nobody)
Message-Id: <201008242350.o7ONochH098945@www.freebsd.org>
Date: Tue, 24 Aug 2010 23:50:38 GMT
From: Alexander Best <arundel@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: glob(3)'s reference to regex(3) is spelled incorrectly
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         149950
>Category:       docs
>Synopsis:       [patch] glob(3)'s reference to regex(3) is spelled incorrectly
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ed
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 25 00:00:19 UTC 2010
>Closed-Date:    Tue Feb 15 20:05:52 UTC 2011
>Last-Modified:  Tue Feb 15 20:10:09 UTC 2011
>Originator:     Alexander Best
>Release:        9.0-CURRENT
>Organization:
>Environment:
FreeBSD otaku 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r211393M: Mon Aug 16 14:59:32 CEST 2010     root@otaku:/usr/obj/usr/src/sys/ARUNDEL  amd64
>Description:
fix a spelling mistake in lib/libc/gen/glob.3 and contrib/tcsh/glob.3.

cheers.
alex
>How-To-Repeat:
find /usr/src -name '*.[1-9]' -exec egrep -n 'regexp 3' {} +
>Fix:
apply this patch:

Patch attached with submission follows:

diff --git a/contrib/tcsh/glob.3 b/contrib/tcsh/glob.3
index f369fc6..127530a 100644
--- a/contrib/tcsh/glob.3
+++ b/contrib/tcsh/glob.3
@@ -31,7 +31,7 @@
 .\"
 .\"     @(#)glob.3	8.3 (Berkeley) 4/16/94
 .\"
-.Dd March 31, 1998
+.Dd August 25, 2010
 .Dt GLOB 3
 .Os
 .Sh NAME
@@ -434,7 +434,7 @@ execvp("ls", g.gl_pathv);
 .Sh SEE ALSO
 .Xr sh 1 ,
 .Xr fnmatch 3 ,
-.Xr regexp 3
+.Xr regex 3
 .Sh STANDARDS
 The
 .Fn glob
diff --git a/lib/libc/gen/glob.3 b/lib/libc/gen/glob.3
index 4c912bb..3189719 100644
--- a/lib/libc/gen/glob.3
+++ b/lib/libc/gen/glob.3
@@ -30,7 +30,7 @@
 .\"     @(#)glob.3	8.3 (Berkeley) 4/16/94
 .\" $FreeBSD$
 .\"
-.Dd September 1, 2004
+.Dd August 25, 2010
 .Dt GLOB 3
 .Os
 .Sh NAME
@@ -417,7 +417,7 @@ execvp("ls", g.gl_pathv);
 .Sh SEE ALSO
 .Xr sh 1 ,
 .Xr fnmatch 3 ,
-.Xr regexp 3
+.Xr regex 3
 .Sh STANDARDS
 The current implementation of the
 .Fn glob


>Release-Note:
>Audit-Trail:

From: Maxim Konovalov <maxim.konovalov@gmail.com>
To: Alexander Best <arundel@freebsd.org>
Cc: bug-followup@freebsd.org
Subject: Re: docs/149950: glob(3)'s reference to regex(3) is spelled
 incorrectly
Date: Wed, 25 Aug 2010 09:57:41 +0400 (MSD)

 > -.Xr regexp 3
 > +.Xr regex 3
 
 It's not clear why.  It seems to me regexp(3) is a pretty much valid
 man page.
 
 -- 
 Maxim Konovalov

From: pluknet <pluknet@gmail.com>
To: Maxim Konovalov <maxim.konovalov@gmail.com>
Cc: bug-followup@freebsd.org, Alexander Best <arundel@freebsd.org>
Subject: Re: docs/149950: glob(3)'s reference to regex(3) is spelled incorrectly
Date: Wed, 25 Aug 2010 10:26:44 +0400

 Hi. Btw, this PR became to be most likely correct since
 regexp(3) library was removed on 20100314 (r205146) in head.

From: Maxim Konovalov <maxim.konovalov@gmail.com>
To: pluknet <pluknet@gmail.com>
Cc: bug-followup@freebsd.org, Alexander Best <arundel@freebsd.org>
Subject: Re: docs/149950: glob(3)'s reference to regex(3) is spelled
 incorrectly
Date: Wed, 25 Aug 2010 10:29:51 +0400 (MSD)

 On Wed, 25 Aug 2010, 10:26+0400, pluknet wrote:
 
 > Hi. Btw, this PR became to be most likely correct since
 > regexp(3) library was removed on 20100314 (r205146) in head.
 >
 Hm, regexp(3) says about libcompat, not regexp lib.
 
 -- 
 Maxim Konovalov

From: Alexander Best <arundel@freebsd.org>
To: pluknet <pluknet@gmail.com>
Cc: Maxim Konovalov <maxim.konovalov@gmail.com>, bug-followup@freebsd.org
Subject: Re: docs/149950: glob(3)'s reference to regex(3) is spelled incorrectly
Date: Wed, 25 Aug 2010 09:43:52 +0000

 On Wed Aug 25 10, pluknet wrote:
 > Hi. Btw, this PR became to be most likely correct since
 > regexp(3) library was removed on 20100314 (r205146) in head.
 
 then i guess instead of changing the reference from regexp(3) to regex(3), it
 should be removed from the glob(3) manual pages completely.
 
 i thought this was a spelling mistake and there never was a regexp(3) manual in
 the first place. looks like i've been wrong and before it's removal in r205146
 it existed in HEAD.
 
 cheers.
 alex
 
 -- 
 a13x
Responsible-Changed-From-To: freebsd-doc->ed 
Responsible-Changed-By: arundel 
Responsible-Changed-When: Tue Feb 15 00:23:03 UTC 2011 
Responsible-Changed-Why:  
Hi Ed. Could you take a look at this PR? You obsoleted regexp(3) in r205146. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=149950 
State-Changed-From-To: open->closed 
State-Changed-By: ed 
State-Changed-When: Tue Feb 15 20:05:50 UTC 2011 
State-Changed-Why:  
Committed, except for tcsh change. File doesn't seem to get installed? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=149950 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/149950: commit references a PR
Date: Tue, 15 Feb 2011 20:04:18 +0000 (UTC)

 Author: ed
 Date: Tue Feb 15 20:04:13 2011
 New Revision: 218711
 URL: http://svn.freebsd.org/changeset/base/218711
 
 Log:
   Remove dead reference to regexp(3). Use regex(3) instead.
   
   PR:		docs/149950
   Submitted by:	arundel@
 
 Modified:
   head/lib/libc/gen/glob.3
 
 Modified: head/lib/libc/gen/glob.3
 ==============================================================================
 --- head/lib/libc/gen/glob.3	Tue Feb 15 18:16:04 2011	(r218710)
 +++ head/lib/libc/gen/glob.3	Tue Feb 15 20:04:13 2011	(r218711)
 @@ -417,7 +417,7 @@ execvp("ls", g.gl_pathv);
  .Sh SEE ALSO
  .Xr sh 1 ,
  .Xr fnmatch 3 ,
 -.Xr regexp 3
 +.Xr regex 3
  .Sh STANDARDS
  The current implementation of the
  .Fn glob
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
>Unformatted:
