From owner-freebsd-doc Sun Aug 20 14: 9:47 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 EF6A337B423; Sun, 20 Aug 2000 14:09:36 -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 13Qbgf-000DoD-00; Sun, 20 Aug 2000 21:27:21 +0100 Received: (from ben@localhost) by strontium.scientia.demon.co.uk (8.9.3/8.9.3) id VAA60991; Sun, 20 Aug 2000 21:27:20 +0100 (BST) (envelope-from ben) Date: Sun, 20 Aug 2000 21:27:20 +0100 From: Ben Smithurst To: Mark Ovens Cc: doc@freebsd.org Subject: Re: locate(1) manpage Message-ID: <20000820212720.C84036@strontium.scientia.demon.co.uk> References: <20000820130425.B254@parish> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20000820130425.B254@parish> Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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... > The last paragraph of BUGS says: > > The locate database is not byte order independent. It is not > possible to share the databases between machines with different > byte order. The current locate implementation understand last word on that line should be "understands", you might like to fix that while you're there. > databases in host byte order or network byte order if both > architectures use the same integer size. So you can read on a > FreeBSD/i386 machine (little endian) a locate database which was > built on SunOS/sparc machine (big endian, net). > > The first 2 sentences contradict each other, No they don't. "not byte order independent" == "byte order dependent" == what the second sentence says. Perhaps the text should be changed to "byte order dependent", I hate double negatives. > and the last sentence appears wrong unless it means that a SunOS > database can be read because it is created in network byte order even > though the machine is big endian. I thought network byte order was the same thing as big endian byte order, though I'm not too sure. -- Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D FreeBSD Documentation Project / To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message