This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: /etc/profile: avoid multiple /usr/bin in PATH
- From: Achim Gratz <Stromeko at nexgo dot de>
- To: cygwin at cygwin dot com
- Date: Tue, 08 Dec 2015 22:01:04 +0100
- Subject: Re: /etc/profile: avoid multiple /usr/bin in PATH
- Authentication-results: sourceware.org; auth=none
- References: <op dot x88uwyt9ofd6j1 at frascati dot upc dot de>
Helmut Karlowski writes:
> I set C:/cygwin/usr/bin in my windows-environment. Now /etc/profile
> always adds /usr/bin to PATH resulting in /usr/bin being twice in my
> cygwin-PATH.
>
> The attached patch fixes this.
I tend to reject this patch. The purpose of the default profile is to
put those two paths in front, while with your patch they could end up
anywhere. If you think that's OK for you, then you can already do that,
but I don't think that's a good default.
> It also sets SHELL if not yet set and avoids a call of hostname.
Can you tell me in which circumstances this happens and why this is a
problem? SHELL is supposed to be the user preference, so I don't think
/etc/profile should try to second-guess it.
The second fork to hostname can indeed be removed.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
Factory and User Sound Singles for Waldorf rackAttack:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
--
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