From owner-freebsd-doc Tue Aug 22 15:26:40 2000 Delivered-To: freebsd-doc@freebsd.org Received: from mta05-svc.ntlworld.com (mta05-svc.ntlworld.com [62.253.162.45]) by hub.freebsd.org (Postfix) with ESMTP id D603737B443; Tue, 22 Aug 2000 15:26:36 -0700 (PDT) Received: from parish.my.domain ([62.253.84.115]) by mta05-svc.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20000822222630.UMZN317.mta05-svc.ntlworld.com@parish.my.domain>; Tue, 22 Aug 2000 23:26:30 +0100 Received: (from mark@localhost) by parish.my.domain (8.9.3/8.9.3) id XAA60242; Tue, 22 Aug 2000 23:26:11 +0100 (BST) (envelope-from mark) Date: Tue, 22 Aug 2000 23:26:09 +0100 From: Mark Ovens To: Ben Smithurst Cc: doc@FreeBSD.org Subject: Re: locate(1) manpage Message-ID: <20000822232609.K254@parish> References: <20000820130425.B254@parish> <20000820212720.C84036@strontium.scientia.demon.co.uk> <20000822202520.E254@parish> <20000822214151.W20036@strontium.scientia.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <20000822214151.W20036@strontium.scientia.demon.co.uk>; from ben@FreeBSD.org on Tue, Aug 22, 2000 at 09:41:51PM +0100 Organization: Total lack of Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, Aug 22, 2000 at 09:41:51PM +0100, Ben Smithurst wrote: > Mark Ovens wrote: > > > I understand what you mean, but I think it is more complicated than > > that. Try > > > > # locate "/include/" > > # locate "*include/" > > # locate "/include*" > > This is explained elsewhere in the manpage. (This is a polite way of saying > "RTFM" ;-) The point of this thread is that the FM is difficult to FU :) > > As a special case, a pattern containing no globbing characters (``foo'') > is matched as though it were ``*foo*''. Yes, I know, but the suggestion in the previous paragraph is that ''/'' is somehow special, or at least handled differently. I'll trawl through the source again and try to get my head around it. Maybe its just the wording that's the problem and that it is trying to say exactly what you said (re ``echo *''). > > So "locate /include/" is the same as "locate */include/*" which matches > "/usr/include/ctype.h", but "/include*" is just treated as "/include*", > which "/usr/include/ctype.h" doesn't match. > > -- > Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D -- 4.4 - The number of the Beastie ________________________________________________________________ 51.44°N FreeBSD - The Power To Serve http://www.freebsd.org 2.057°W My Webpage http://ukug.uk.freebsd.org/~mark mailto:marko@freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message