X-Recipient: archive-cygwin@delorie.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:content-type:to:subject:references:date
	:mime-version:content-transfer-encoding:from:message-id
	:in-reply-to; q=dns; s=default; b=ww4ElCLK9TjOQWhkHqvm3FwZ/QrjGi
	ndrW3DmGyp/btiqeg2LYCPHzvVvqEIoSowvs4Q1b0p5Dpz6zLDe4G4um/mycIC0g
	5kXvtu1dW4teGlN37VvfpTZMj5jLy1BlgUsBtYcLlCD5Z+6Qr5fjAM7+MFWtyflw
	/rx9qKYsaCd2k=
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:content-type:to:subject:references:date
	:mime-version:content-transfer-encoding:from:message-id
	:in-reply-to; s=default; bh=VieLxH7YAOWDUHGtzZQE0sbPv9o=; b=VV8Z
	p1z7vNUhYaH1l5Qas//xtpyvT7gJcmI1VOkPV14xdElkd4DhceBOBmOGmQFyAmxO
	XGXqcBU7K3vbFFVHRrHU4gNkGu1E18xCUzKO6Hp4Q10FJ2MwBeXmo13/rAX7kbhT
	yaXaH0II8h0iQHNJUXWzVTvL6JBoX5hwMeBiyzw=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
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
X-Abuse-ID: hremUFXL0y-8240@umkbw.customer
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: <op.x88uwyt9ofd6j1@frascati.upc.de> <87oae0venj.fsf@Rainer.invalid> <op.x9cf2njrofd6j1@frascati.upc.de> <87fuzcvdpv.fsf@Rainer.invalid> <op.x9cghzy7ofd6j1@frascati.upc.de>
Date: Tue, 08 Dec 2015 22:31:17 +0100
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: "Helmut Karlowski" <helmut.karlowski@ish.de>
Message-ID: <op.x9cgqf1pofd6j1@frascati.upc.de>
In-Reply-To: <op.x9cghzy7ofd6j1@frascati.upc.de>
User-Agent: Opera Mail/12.17 (Win32)
Outgoingd: 0.4.0_m1
X-IsSubscribed: yes

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

