Date: Sun, 20 Aug 2000 21:27:20 +0100 From: Ben Smithurst <ben@FreeBSD.org> To: Mark Ovens <marko@freebsd.org> Cc: doc@freebsd.org Subject: Re: locate(1) manpage Message-ID: <20000820212720.C84036@strontium.scientia.demon.co.uk> In-Reply-To: <20000820130425.B254@parish> References: <20000820130425.B254@parish>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000820212720.C84036>