From owner-cvs-all@FreeBSD.ORG Fri Nov 11 21:43:54 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E49CC16A41F; Fri, 11 Nov 2005 21:43:54 +0000 (GMT) (envelope-from mux@freebsd.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id B098843D45; Fri, 11 Nov 2005 21:43:54 +0000 (GMT) (envelope-from mux@freebsd.org) Received: by elvis.mu.org (Postfix, from userid 1920) id A403C1A3C31; Fri, 11 Nov 2005 13:43:54 -0800 (PST) Date: Fri, 11 Nov 2005 22:43:54 +0100 From: Maxime Henrion To: Parv , src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Message-ID: <20051111214354.GD1327@elvis.mu.org> References: <200511110808.jAB884DO074943@repoman.freebsd.org> <20051111211307.GA12552@holestein.holy.cow> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051111211307.GA12552@holestein.holy.cow> User-Agent: Mutt/1.4.2.1i Cc: Kirill Ponomarew Subject: Re: cvs commit: src/usr.sbin/pkg_install/create create.h main.c perform.c pkg_create.1 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2005 21:43:55 -0000 Parv wrote: > in message <200511110808.jAB884DO074943@repoman.freebsd.org>, > wrote Kirill Ponomarew thusly... > > > ... > > date: 2005/11/08 20:48:26; author: krion; state: Exp; lines: +1 -0 > > Introduce 3 new options for pkg_create(1), -x for using basic > > regular expressions for pkg-name, -E for extended regexps and -G > > for exact matching. These new options are only meaningful when > > using the -b flag of pkg_create(1), and that the default for the > > -b parameter is now to do glob matching, as in other pkg_foo > > utilities that support package patterns. > > Thanks much. > > Is there any plan, now or later, to match up all the regex options > in various pkg_* commands? pkg_info (on 5.4) currently has -[xX] > for regex; above will introduce -[ExG], where -x option seem to be > doing the same thing both in pkg_info & pkg_create. I notice that > pkg_create uses -X for exclusion. Hmm... Actually, pkg_info(1) has -G for strict matching too. As you said, the -X flag was already taken for pkg_create(1) which is why I chose -E, which is used by many other userland applications to enable extended regexp matching (grep, sed...). It would be indeed nice to have all those sorted out and unified throughout the pkg_* tools. Seems like Kirill has already volunteered for that task anyways :-). Cheers, Maxime