Date: Wed, 12 Jan 2000 00:01:04 -0800 (PST) From: "Rodney W. Grimes" <freebsd@gndrsh.dnsmgr.net> To: sheldonh@uunet.co.za (Sheldon Hearn) Cc: jkh@zippy.cdrom.com (Jordan K. Hubbard), kris@hub.FreeBSD.ORG (Kris Kennaway), fullermd@futuresouth.com (Matthew D. Fuller), asmodai@bart.nl (Jeroen Ruigrok van der Werven), cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/pkg_install/delete perform.c Message-ID: <200001120801.AAA27467@gndrsh.dnsmgr.net> In-Reply-To: <55767.947660806@axl.noc.iafrica.com> from Sheldon Hearn at "Jan 12, 2000 09:06:46 am"
next in thread | previous in thread | raw e-mail | index | archive | help
>
>
> On Tue, 11 Jan 2000 17:21:01 PST, "Jordan K. Hubbard" wrote:
>
> > That is to say that it should be possible to say:
> >
> > pkg_info '*apache*'
> > pkg_delete 'emacs*'
> >
> > etc. And no, I don't have time to write the code which takes a regexp
> > and iteratively matches it against directory components in
> > /var/db/pkg, but I can certainly say that it should be easy enough to
> > implement for anyone who DOES have the time.
>
> Well, if pkg_delete stripped off the path to a package name, you
> wouldn't need to do all this work. You could just:
>
> pkg_delete /var/db/pkg/emacs*
My patch should make that work too, as the shell does the globing:
Orbit.hpc1.com:root{197}# echo /var/db/pkg/X*
/var/db/pkg/XFree86-3.3.5 /var/db/pkg/XFree86-contrib-3.3.3
No, I wasn't about to run that.... thats why I just used echo to make
sure that the args would be correct :-)
--
Rod Grimes - KD7CAX @ CN85sl - (RWG25) rgrimes@gndrsh.dnsmgr.net
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001120801.AAA27467>
