From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 36075 invoked by alias); 8 Dec 2015 21:01:15 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 36054 invoked by uid 89); 8 Dec 2015 21:01:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_05,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-in-11.arcor-online.net Received: from mail-in-11.arcor-online.net (HELO mail-in-11.arcor-online.net) (151.189.21.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Tue, 08 Dec 2015 21:01:11 +0000 Received: from mail-in-11-z2.arcor-online.net (mail-in-11-z2.arcor-online.net [151.189.8.28]) by mx.arcor.de (Postfix) with ESMTP id 3pFYnw2JC2z32DK for ; Tue, 8 Dec 2015 22:01:08 +0100 (CET) Received: from mail-in-15.arcor-online.net (mail-in-15.arcor-online.net [151.189.21.55]) by mail-in-11-z2.arcor-online.net (Postfix) with ESMTP id 4C24931A679 for ; Tue, 8 Dec 2015 22:01:08 +0100 (CET) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-15.arcor-online.net 3pFYnw1JcNz3YLc Received: from Gertrud (p54B46FE3.dip0.t-ipconnect.de [84.180.111.227]) (Authenticated sender: stromeko@arcor.de) by mail-in-15.arcor-online.net (Postfix) with ESMTPSA id 3pFYnw1JcNz3YLc for ; Tue, 8 Dec 2015 22:01:08 +0100 (CET) From: Achim Gratz To: cygwin@cygwin.com Subject: Re: /etc/profile: avoid multiple /usr/bin in PATH References: Date: Tue, 08 Dec 2015 21:01:00 -0000 In-Reply-To: (Helmut Karlowski's message of "Sun, 06 Dec 2015 23:47:12 +0100") Message-ID: <87oae0venj.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2015-12/txt/msg00106.txt.bz2 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