Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Apr 2015 19:14:46 +0700
From:      Olivier Nicole <olivier.nicole@cs.ait.ac.th>
To:        FreeBSD FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: Path settings
Message-ID:  <CA%2Bg%2BBviNzH1a_S21gXsWi_p8wZ1cfb0ZK0O07FoXAX-LCeb-Sw@mail.gmail.com>
In-Reply-To: <20150408080410.437e58a9@seibercom.net>
References:  <20150408080410.437e58a9@seibercom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Jerry,

> I have never understood which comes first in the path setting; "/usr/bin"
> or "/usr/local/bin". The same can be said for "/usr/sbin"
> and /usr/local/sbin".
>
> The reason I am asking is because I have "openssl" installed from ports. If I
> have the former path setting and run "which openssl", the system openssl is
> reported. However, if I switch the path setting to the latter, and rerun the
> command, the port version of openssl is revealed.

which will try the various path and report the first occurence it finds.

So /usr/bin:/usr/local/bin will find openssl in /usr/bin first and
/usr/local/bin:/usr/bin will find openssl in /usr/local/bin first.

It all depends on what you intend to do.

Best regards,

Olivier

>
> I have "WITH_OPENSSL_PORT=yes" in the "/etc/make.conf" file if that makes any
> difference.
>
> --
> Jerry



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2Bg%2BBviNzH1a_S21gXsWi_p8wZ1cfb0ZK0O07FoXAX-LCeb-Sw>