delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/06/08/14:27:38

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 8 Jun 2010 14:27:27 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Why does /etc/profile include /bin and /usr/bin in the PATH?
Message-ID: <20100608182727.GA13285@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20100607211756 DOT GA6765 AT ednor DOT casa DOT cgf DOT cx> <4C0E8460 DOT 8070207 AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <4C0E8460.8070207@gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Tue, Jun 08, 2010 at 06:56:48PM +0100, Dave Korn wrote:
>On 07/06/2010 22:17, Christopher Faylor wrote:
>> Maybe this has been discussed and I just don't remember but why are /bin
>> and /usr/bin included in the default path in /etc/profile?  Since they
>> point to the same directory that just slows bash down a little when
>> finding files not in /bin.
>
>  Some things try to access $0/../share/....
>
>  Since $prefix=/usr for cygwin, /usr/bin is the expected location.  There's
>no alias for /share like there is for /bin and /lib.

That's an argument for having a path which includes /usr/bin.  It doesn't
explain why both are needed.

cgf

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019