cvs commit: src/usr.sbin/pkg_install/create create.h main.c perform.c pkg_create.1

Maxime Henrion mux at FreeBSD.org
Fri Nov 11 13:43:55 PST 2005


Parv wrote:
> in message <200511110808.jAB884DO074943 at 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


More information about the cvs-all mailing list