delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/06/08/13:39:22

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4C0E8460.8070207@gmail.com>
Date: Tue, 08 Jun 2010 18:56:48 +0100
From: Dave Korn <dave DOT korn DOT cygwin AT gmail DOT com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Why does /etc/profile include /bin and /usr/bin in the PATH?
References: <20100607211756 DOT GA6765 AT ednor DOT casa DOT cgf DOT cx>
In-Reply-To: <20100607211756.GA6765@ednor.casa.cgf.cx>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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 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.

    cheers,
      DaveK


--
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