From owner-freebsd-doc Tue Aug 22 14: 2:31 2000 Delivered-To: freebsd-doc@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 5289937B422; Tue, 22 Aug 2000 14:02:21 -0700 (PDT) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=root) by scientia.demon.co.uk with esmtp (Exim 3.16 #1) id 13RKro-000H2c-00; Tue, 22 Aug 2000 21:41:52 +0100 Received: (from ben@localhost) by strontium.scientia.demon.co.uk (8.9.3/8.9.3) id VAA15998; Tue, 22 Aug 2000 21:41:51 +0100 (BST) (envelope-from ben) Date: Tue, 22 Aug 2000 21:41:51 +0100 From: Ben Smithurst To: Mark Ovens Cc: doc@freebsd.org Subject: Re: locate(1) manpage Message-ID: <20000822214151.W20036@strontium.scientia.demon.co.uk> References: <20000820130425.B254@parish> <20000820212720.C84036@strontium.scientia.demon.co.uk> <20000822202520.E254@parish> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20000822202520.E254@parish> Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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" ;-) As a special case, a pattern containing no globbing characters (``foo'') is matched as though it were ``*foo*''. 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message