X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:references:date:in-reply-to :message-id:mime-version:content-type; q=dns; s=default; b=f+iB9 Fh3rEPVXNs68uQViqC+AK28tqBehSxjyPLHrIChsIDzebQyEkCJI0ecST92hy0gj GU0wcEvJKecXVeZD096Tj95V8oRDWgZQgzAWHhuEoYBrat/cfnEwMK2KsRN58lPU 7P9+o+YQ+NCqjXvwgp/3mcmoZ9QR4haJjQ+/iI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:references:date:in-reply-to :message-id:mime-version:content-type; s=default; bh=01z7ibe2EUk d3I4Ti2uQeTutAPc=; b=J94kI8q4PzwyboEig8mcYBSTkSU+A2kD4w3um5CzmB+ GyD6+BZGG7VZ0baipxpIH4dLtZABSI2gah6b0zFqVF5u6okpK2oWBoo8S5A64tez oG+904o0Ts2FCCxvz1VbRQsK4VR1GTdO72HCvyjHZaI5ryKL/iY/ieoOPaPzPcoU = Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-15.arcor-online.net 3pFYnw1JcNz3YLc From: Achim Gratz To: cygwin AT cygwin DOT com Subject: Re: /etc/profile: avoid multiple /usr/bin in PATH References: Date: Tue, 08 Dec 2015 22:01:04 +0100 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 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