From owner-freebsd-ports Mon Feb 5 15: 3:41 2001 Delivered-To: freebsd-ports@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.189]) by hub.freebsd.org (Postfix) with SMTP id BE9AB37B69D for ; Mon, 5 Feb 2001 15:03:21 -0800 (PST) Received: (qmail 24659 invoked by uid 1000); 5 Feb 2001 23:01:42 -0000 Date: Tue, 6 Feb 2001 01:01:42 +0200 From: Peter Pentchev To: Jordan Hubbard Cc: Maxim Sobolev , ports@FreeBSD.org, jkh@FreeBSD.org, Edwin Groothuis Subject: Re: Request for comments [Fwd: bin/24695: [patch] pkg_info: prefix search for a package] Message-ID: <20010206010142.E17885@ringworld.oblivion.bg> Mail-Followup-To: Jordan Hubbard , Maxim Sobolev , ports@FreeBSD.org, jkh@FreeBSD.org, Edwin Groothuis References: <8064.981413776@winston.osd.bsdi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <8064.981413776@winston.osd.bsdi.com>; from jkh@winston.osd.bsdi.com on Mon, Feb 05, 2001 at 02:56:16PM -0800 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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...) G'luck, Peter -- I am the thought you are now thinking. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message