From owner-freebsd-ports Tue Feb 6 0:57:34 2001 Delivered-To: freebsd-ports@freebsd.org Received: from blizzard.sabbo.net (smtp.sabbo.net [193.193.218.18]) by hub.freebsd.org (Postfix) with ESMTP id 3F8AD37B684; Tue, 6 Feb 2001 00:56:50 -0800 (PST) Received: from vic.sabbo.net (root@vic.sabbo.net [193.193.218.112]) by blizzard.sabbo.net (8.10.1/8.10.1) with ESMTP id f168u0824639; Tue, 6 Feb 2001 10:56:00 +0200 Received: from FreeBSD.org (big_brother.vega.com [192.168.1.1]) by vic.sabbo.net (8.11.2/8.9.3) with ESMTP id f168Un936352; Tue, 6 Feb 2001 10:30:49 +0200 (EET) (envelope-from sobomax@FreeBSD.org) Message-ID: <3A7FB637.792D33D8@FreeBSD.org> Date: Tue, 06 Feb 2001 10:30:47 +0200 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: uk,ru,en MIME-Version: 1.0 To: Peter Pentchev Cc: Jordan Hubbard , ports@FreeBSD.org, jkh@FreeBSD.org, Edwin Groothuis Subject: Re: Request for comments [Fwd: bin/24695: [patch] pkg_info: prefix search for a package] References: <8064.981413776@winston.osd.bsdi.com> <20010206010142.E17885@ringworld.oblivion.bg> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Peter Pentchev wrote: > On Mon, Feb 05, 2001 at 02:56:16PM -0800, Jordan Hubbard wrote: > > > But do you really mean regexp-style wildcards, or merely shell-globbing > > > wildcards? If it's just shell globbing, that's much easier to do - > > > just an additional fnmatch() call. > > > > Well, I could go both ways. People are generally a lot more familiar > > with shell globbing syntax and tend to understand "*foo*" over > > ".*foo.*" (unless they're regexp weenies like me) but regexps are far > > more powerful and also delight the engineers. Maybe make it an > > option. ;) > > Don't get me wrong, I *love* regexps too :) Just.. maybe shell globbing > shall be a bit more POLA-friendly, don't you think? And then, regexp > globbing activated by a cmdline option.. mmmmmmm! :) > > (and possibly a shell alias which sets that option by default...) Hehe folks, you are probably reading my brain (I pondered something like that, but was away from e-mail) ;). What do you think if I reimplement 'fuzzy' and 'prefix' options from original proposal into `glob' and `regex' options? So regex kidz would be able say "-x .*foo.*", while glob-lovers "-g *foo*". -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message