This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Why does /etc/profile include /bin and /usr/bin in the PATH?
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 8 Jun 2010 14:27:27 -0400
- Subject: Re: Why does /etc/profile include /bin and /usr/bin in the PATH?
- References: <20100607211756.GA6765@ednor.casa.cgf.cx> <4C0E8460.8070207@gmail.com>
- Reply-to: 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