Date: Fri, 22 Dec 2000 07:38:37 GMT From: Cliff Sarginson <cliff@raggedclown.net> To: "Otter" <otterr@telocity.com>, "FreeBSD Questions" <questions@FreeBSD.ORG> Subject: Re: search order? Message-ID: <E149Mmj-00075q-00@post.mail.nl.demon.net>
next in thread | raw e-mail | index | archive | help
> Let's say we find a binary of an app located in /bin. After thinking > back, also realizing that the same binary was installed manually and > is located in /usr/local/bin. Which one takes priority? I would assume > the /bin, but not sure. Is that determined by the order listed in my > PATH setting or set by default as something else? > -Otter That is the meaning of the PATH setting. It will search the paths in order and the first match it finds.. then bingo ! Which is why, btw, you shouldn't have "." in root's PATH. In case some scallywag puts a nasty version of .. say "ls" in some innocent directory, and this happens to be a shell script that does a "rm -rf *" .. ho ho.. Cliff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E149Mmj-00075q-00>