From owner-freebsd-doc Tue Aug 22 12:26: 0 2000 Delivered-To: freebsd-doc@freebsd.org Received: from mta02-svc.ntlworld.com (mta02-svc.ntlworld.com [62.253.162.42]) by hub.freebsd.org (Postfix) with ESMTP id B5B6937B422; Tue, 22 Aug 2000 12:25:55 -0700 (PDT) Received: from parish.my.domain ([62.253.88.67]) by mta02-svc.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20000822202456.UHOJ3760.mta02-svc.ntlworld.com@parish.my.domain>; Tue, 22 Aug 2000 20:24:56 +0000 Received: (from mark@localhost) by parish.my.domain (8.9.3/8.9.3) id UAA03324; Tue, 22 Aug 2000 20:25:21 +0100 (BST) (envelope-from mark) Date: Tue, 22 Aug 2000 20:25:20 +0100 From: Mark Ovens To: Ben Smithurst Cc: doc@freebsd.org Subject: Re: locate(1) manpage Message-ID: <20000822202520.E254@parish> References: <20000820130425.B254@parish> <20000820212720.C84036@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: <20000820212720.C84036@strontium.scientia.demon.co.uk>; from ben@freebsd.org on Sun, Aug 20, 2000 at 09:27:20PM +0100 Organization: Total lack of Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, Aug 20, 2000 at 09:27:20PM +0100, Ben Smithurst wrote: > Mark Ovens wrote: > > > The 2nd paragraph of DESCRIPTION says: > > > > Shell globbing and quoting characters (``*'', ``?'', ``\'', ``['' > > and ``]'') may be used in pattern, although they will have to be > > escaped from the shell. Preceding any character with a backslash > > (``\'') eliminates any special meaning which it may have. The > > matching differs in that no characters must be matched explicitly, > > including slashes (``/''). > > > > The last sentence just doesn't make sense, no matter how many times I > > read it (looking at the source code doesn't make it any clearer > > either). > > I think it means this.... In the shell, "echo *" just gets files in > the current directory, but "locate '*'" will get you all files. i.e. in > the shell, you must specify one '/' for each '/' in the filename which > will get matched. Am I making any sense at all here? I don't feel like > it... > I understand what you mean, but I think it is more complicated than that. Try # locate "/include/" # locate "*include/" # locate "/include*" I would expect them to return the same results, i.e. /usr/include/ctype.h would be listed by all three, but not so; "*include/" returns no matches and neither does "/include*". -- 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