Re: Why does /etc/profile include /bin and /usr/bin in the PATH?
On 08/06/2010 19:27, Christopher Faylor wrote: > 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. Yep. As far as I know, /bin is superfluous in $PATH and only has to exist in general in order to support explicit /bin/... shebang paths and the like. There could be some analogous reason why some apps required it, but I'd not expect that to arise unless they'd been compiled with $prefix=/, which is of course wrong for cygwin. 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
Re: Why does /etc/profile include /bin and /usr/bin in the PATH?
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
Re: Why does /etc/profile include /bin and /usr/bin in the PATH?
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
Re: Why does /etc/profile include /bin and /usr/bin in the PATH?
On Jun 8 10:23, Christopher Faylor wrote: > On Tue, Jun 08, 2010 at 10:26:30AM +0200, Corinna Vinschen wrote: > >On Jun 7 17: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? > > > >History? > > /bin and /usr/bin have pointed to the same location for at least ten years. > I think that predates /etc/profile. Sure. I just meant that we are using the /bin and /usr/bin in $PATH for ages. Personally I thought all the time it's for some sort of Linux $PATH compatibility :) Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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
Re: Why does /etc/profile include /bin and /usr/bin in the PATH?
On Tue, Jun 08, 2010 at 10:26:30AM +0200, Corinna Vinschen wrote: >On Jun 7 17: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? > >History? /bin and /usr/bin have pointed to the same location for at least ten years. I think that predates /etc/profile. 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
Re: Why does /etc/profile include /bin and /usr/bin in the PATH?
On Jun 7 17: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? History? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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
Why does /etc/profile include /bin and /usr/bin in the PATH?
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. 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