From nobody@FreeBSD.org  Mon Apr  2 05:46:13 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id AF56116A406
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  2 Apr 2007 05:46:13 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 9FE2313C4BA
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  2 Apr 2007 05:46:13 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l325kDuQ050154
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 2 Apr 2007 05:46:13 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l325fCrn049667;
	Mon, 2 Apr 2007 05:41:12 GMT
	(envelope-from nobody)
Message-Id: <200704020541.l325fCrn049667@www.freebsd.org>
Date: Mon, 2 Apr 2007 05:41:12 GMT
From: Garrett Cooper <yaneurabeya@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Possible bug with portsnap / grep
X-Send-Pr-Version: www-3.0

>Number:         111123
>Category:       misc
>Synopsis:       Possible bug with portsnap / grep
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 02 05:50:10 GMT 2007
>Closed-Date:    Mon Apr 02 05:54:28 GMT 2007
>Last-Modified:  Sun Feb 03 22:27:29 UTC 2013
>Originator:     Garrett Cooper
>Release:        7-CURRENT
>Organization:
n/a
>Environment:
FreeBSD hoover.localdomain 7.0-CURRENT FreeBSD 7.0-CURRENT #25: Mon Mar 26 23:21:11 PST 2007     root@hoover.localdomain:/usr/obj/usr/src/sys/HOOVER  i386
>Description:
This is related to the ports/111106 PR.

In my portsnap.conf file:

REFUSE arabic astro audio benchmarks biology cad chinese comms databases deskutils dns finance french games german hebrew hungarian irc japanese korean mail math mbone multimedia net-* news palm polish portuguese russian science ukrainian vietnamese

I would expect net-* to glob and kill all directories like net-mgmt, etc, but instead it nukes the net directory as well. This is definitely unexpected behavior.
>How-To-Repeat:
Add a valid regular expression to the refuse section.
>Fix:
Looking up solution (changing egrep to grep?). All valid solutions seem to break things instead of fixing them, but I'm a Perl regular expressions guy, not a grep regular expressions guy.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Mon Apr 2 05:54:25 UTC 2007 
State-Changed-Why:  
duplicate of misc/111122 

http://www.freebsd.org/cgi/query-pr.cgi?pr=111123 
>Unformatted:
