From owner-freebsd-questions@FreeBSD.ORG Wed Apr 8 12:14:47 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 32050296 for ; Wed, 8 Apr 2015 12:14:47 +0000 (UTC) Received: from mail-ig0-x235.google.com (mail-ig0-x235.google.com [IPv6:2607:f8b0:4001:c05::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id ECD71D7C for ; Wed, 8 Apr 2015 12:14:46 +0000 (UTC) Received: by igbqf9 with SMTP id qf9so36254587igb.1 for ; Wed, 08 Apr 2015 05:14:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=xwCnbi8wXUP2viBaNGxZlpXpgAZgyylKM6iUQdw/y2k=; b=kckYHkshH9OZG4V5aF2e6zgL5UD5Sabphk/2NG3/aN+Lh+E8m06ASYaZjHWuJEdiFv vFlKrfF1MZgFXIer2OCwZ18eEtMyvrMVkfiPDLw8JaGYBAaOBx3z6M79eEZ1tJNYl04O lPEPg1M6kVM9Zc3xV2DAPm7iryY4/vX0r9Prrp8pkVA+YRJJ/rFrifYZgXmoyygttn56 3R/enKcR/+LtsfmLsqPgtAsohvvVjUviSb8oilWC1q9Z5ai1aRh+DT6oLL3d/WAgOyQE z7RiuQN+QVw9GNUS+k2rtl5WEFSMryp7sRefTeHcr+UwwozJSFPUwzNGF7pWPUE98A3G 6WOA== MIME-Version: 1.0 X-Received: by 10.107.6.84 with SMTP id 81mr16341691iog.52.1428495286385; Wed, 08 Apr 2015 05:14:46 -0700 (PDT) Sender: olivier2553@gmail.com Received: by 10.107.155.135 with HTTP; Wed, 8 Apr 2015 05:14:46 -0700 (PDT) In-Reply-To: <20150408080410.437e58a9@seibercom.net> References: <20150408080410.437e58a9@seibercom.net> Date: Wed, 8 Apr 2015 19:14:46 +0700 X-Google-Sender-Auth: wb9zn29LQ2khKsHNO8bvb3IaDqE Message-ID: Subject: Re: Path settings From: Olivier Nicole To: FreeBSD FreeBSD Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Apr 2015 12:14:47 -0000 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