From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1791 invoked by alias); 8 Dec 2015 21:31:25 -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 1778 invoked by uid 89); 8 Dec 2015 21:31:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mailout.ish.de Received: from mailout.ish.de (HELO mailout.ish.de) (80.69.98.254) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 08 Dec 2015 21:31:23 +0000 Received: from submit.unitybox.de (mailout.ish.de [80.69.98.253]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.ish.de (Postfix) with ESMTPS id 3pFZRF2ZQ9zBMc7t for ; Tue, 8 Dec 2015 22:30:01 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by submit.unitybox.de (Postfix) with ESMTP id 3pFZSl42HRz6dtC4 for ; Tue, 8 Dec 2015 22:31:19 +0100 (CET) Received: from submit.unitybox.de ([127.0.0.1]) by localhost (submit.unitybox.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id LaedBlRVC9jV for ; Tue, 8 Dec 2015 22:31:19 +0100 (CET) X-Abuse-ID: hremUFXL0y-8240@umkbw.customer Received: from frascati.upc.de (unknown [5.147.52.203]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by submit.unitybox.de (Postfix) with ESMTPSA id 3pFZSl1zMPz6dtC3 for ; Tue, 8 Dec 2015 22:31:19 +0100 (CET) Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: cygwin@cygwin.com Subject: Re: /etc/profile: avoid multiple /usr/bin in PATH References: <87oae0venj.fsf@Rainer.invalid> <87fuzcvdpv.fsf@Rainer.invalid> Date: Tue, 08 Dec 2015 21:31:00 -0000 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Helmut Karlowski" Message-ID: In-Reply-To: User-Agent: Opera Mail/12.17 (Win32) Outgoingd: 0.4.0_m1 X-IsSubscribed: yes X-SW-Source: 2015-12/txt/msg00111.txt.bz2 Am 08.12.2015, 22:26 Uhr, schrieb Helmut Karlowski: > Am 08.12.2015, 22:21 Uhr, schrieb Achim Gratz: > >> Helmut Karlowski writes: >>>> 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. >>> >>> /etc/profile is run before ~/.profile, and if that does not set SHELL >>> there will be none. >> >> Yes, but why is this a problem? Note that bash will set it anyway if >> not present. All shells set it only when run as login-shell. -Helmut -- -- 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