Date: Thu, 08 Feb 2001 12:27:04 +0200 From: Maxim Sobolev <sobomax@FreeBSD.org> To: Peter Pentchev <roam@orbitel.bg> Cc: Jordan Hubbard <jkh@winston.osd.bsdi.com>, ports@FreeBSD.org, jkh@FreeBSD.org, Edwin Groothuis <mavetju@chello.nl> Subject: Re: Request for comments [Fwd: bin/24695: [patch] pkg_info: prefix search for a package] Message-ID: <3A827478.26A49757@FreeBSD.org> References: <10197.981450491@winston.osd.bsdi.com> <3A7FC36A.1434D2CC@FreeBSD.org> <3A801D32.DE73F780@FreeBSD.org> <20010208122012.H21672@ringworld.oblivion.bg>
next in thread | previous in thread | raw e-mail | index | archive | help
Peter Pentchev wrote: > On Tue, Feb 06, 2001 at 05:50:10PM +0200, Maxim Sobolev wrote: > > Maxim Sobolev wrote: > > > > Here it is. With this patch pkg_install treats any arguments as shell globs by > > default and as regexs with -x, so for example the following is equivalent: > > $ pkg_info foo\* > > $ pkg_info -x ^foo.\* > > > > Please let me know what do you think about those patches. > > Finally got the time to look them over; they work great! > > Just one minor thing - look at the attached patch to completely get rid > of the AllInstalled variable, and make pkg_info DTRT when called with > no arguments (that was the first thing I tried, and it failed badly :) > > diff -urN pkg_install-orig/info/main.c pkg_install/info/main.c > --- pkg_install-orig/info/main.c Thu Feb 8 11:41:05 2001 > +++ pkg_install/info/main.c Thu Feb 8 12:14:37 2001 > @@ -32,7 +32,6 @@ > > int Flags = 0; > match_t MatchType = MATCH_GLOB; > -Boolean AllInstalled = FALSE; > [...] OOPS, how I missed it??? :-/ Merged, thank you for your comment. -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A827478.26A49757>