Re: GNU locate looking into a non-existant tree
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On 16-May-2010, at 00:21, John B Brown wrote:
Dear Folk,
After doing a wipe -r on /usr/local and recompiling the GNU findutils package to install under /usr, the command 'locate --version' returns a peculiar failure;
(1): % locate --version -bash: /usr/local/bin/locate: No such file or directory
But of course, it's correct, but 'whereis' reveals;
(5): % whereis locate /usr/bin/locate
My PATH has no /usr/local anything in it now; I edited all that stuff out.
the error’s from bash itself. it caches paths of executables you’ve run recently. do a “hash locate” to force it to forget the old path. M. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Mo McRoberts