From owner-freebsd-questions Thu Dec 21 23:38:41 2000 From owner-freebsd-questions@FreeBSD.ORG Thu Dec 21 23:38:39 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id D07DE37B400 for ; Thu, 21 Dec 2000 23:38:38 -0800 (PST) Received: from [195.11.243.26] (helo=Debug) by post.mail.nl.demon.net with smtp (Exim 3.14 #2) id 149Mmj-00075q-00; Fri, 22 Dec 2000 07:38:37 +0000 To: "Otter" , "FreeBSD Questions" From: Cliff Sarginson Subject: Re: search order? Date: Fri, 22 Dec 2000 07:38:37 GMT X-Mailer: www.webmail.nl.demon.net X-Sender: postmaster@btvs.demon.nl X-Originating-IP: 192.250.24.58 Message-Id: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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