Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Nov 2005 22:43:54 +0100
From:      Maxime Henrion <mux@FreeBSD.org>
To:        Parv <parv@pair.com>, src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Cc:        Kirill Ponomarew <krion@FreeBSD.org>
Subject:   Re: cvs commit: src/usr.sbin/pkg_install/create create.h main.c perform.c pkg_create.1
Message-ID:  <20051111214354.GD1327@elvis.mu.org>
In-Reply-To: <20051111211307.GA12552@holestein.holy.cow>
References:  <200511110808.jAB884DO074943@repoman.freebsd.org> <20051111211307.GA12552@holestein.holy.cow>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051111214354.GD1327>