Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Aug 2000 23:26:09 +0100
From:      Mark Ovens <marko@freebsd.org>
To:        Ben Smithurst <ben@FreeBSD.org>
Cc:        doc@FreeBSD.org
Subject:   Re: locate(1) manpage
Message-ID:  <20000822232609.K254@parish>
In-Reply-To: <20000822214151.W20036@strontium.scientia.demon.co.uk>; from ben@FreeBSD.org on Tue, Aug 22, 2000 at 09:41:51PM %2B0100
References:  <20000820130425.B254@parish> <20000820212720.C84036@strontium.scientia.demon.co.uk> <20000822202520.E254@parish> <20000822214151.W20036@strontium.scientia.demon.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000822232609.K254>