[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: locate(1) man page hard to understand, please rewrite
From: |
Paul D. Smith |
Subject: |
Re: locate(1) man page hard to understand, please rewrite |
Date: |
Mon, 8 Jul 2002 08:50:25 -0400 |
%% address@hidden (Alfred M. Szmidt) writes:
ams> $ locate /tmp
ams> /home/ams/src/hurd/tmpfs
ams> /home/ams/src/hurd/tmpfs/ChangeLog
ams> /home/ams/src/hurd/tmpfs/CVS
ams> /home/ams/src/hurd/tmpfs/CVS/Entries
ams> /home/ams/src/hurd/tmpfs/CVS/Repository
ams> /home/ams/src/hurd/tmpfs/CVS/Root
ams> This looks like a bug to me.
No, this is correct. Locate matches substrings by default. This is
different from how other globbing instances work, but it how the tool is
intended to work.
I just forgot about that.
ams> After looking a bit closer the following would do what "locate /tmp"
ams> is supposed to do (IHMO):
ams> $ locate */tmp
ams> /home/ams/share/doc/tmp
ams> But it doesn't match /tmp for some odd reason. `*' should match
ams> any "zero or more characters"
Offhand this does seem incorrect, but I'd have to check the man page to
be sure.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://www.paulandlesley.org/gmake/
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist