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:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; q=dns; s=
	default; b=sQxnkF2hhrCKSzti7DR5NE/HRpk6a8z4PLe73/tDMm/Yt2URcox++
	EbBhPrVPIKvlOQJDzYxbGUCZdEsNtkgcOdTdy/Ab7kJbhMvvJEGRqgaTEifmwLqw
	GX1SOKMu5a1p2Tc6yZpVj3SEGqb/sjmZ/YOTGJgch6f2NZhZIhcrII=
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:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; s=default;
	 bh=jwTOzTCwmoFCdm0Jx0TJchHsG0Y=; b=JNTwMptm2RFLcZ0XObFJCY+8mjMQ
	qc9DFhsUtmLhd/gQX9vFSvbjEiG18PjCGpzj4SM7/FzfvzHFjKhHiHXUAJCIVQpv
	3p/yS45/urV5NwQyVTK04npDTHkqmiOWRZbELZtrkAlnVPBsu8nZN273pdlSbMA+
	CuvUcs1W/xKire0=
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=1.0 required=5.0 tests=BAYES_20,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=H*Ad:D*gov, H*r:Unknown
X-HELO: blaine.gmane.org
To: cygwin@cygwin.com
From: Andrew Schulman <schulman.andrew@epa.gov>
Subject: Re: Use of SHELL env var by login
Date: Tue, 27 Sep 2016 06:58:08 -0400
Lines: 24
Message-ID: <c3kkub9l8g3pa9vv5j29eo252s8btcaf39@4ax.com>
References: <ae3654ca-c23d-975b-61e2-b7edebb3fc6d@raelity.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Archive: encrypt
X-IsSubscribed: yes

> I just moved the cygwin installation. The "last" peculiarity I ran into 
> was that the login shell, with the shortcut "F:\cygwin64\bin\mintty.exe 
> -i /Cygwin-Terminal.ico -", a ps showed
> 
>      /cygdrive/c/cygwin64/bin/bash
> 
> instead of /usr/bin/bash
> 
> I tracked this down the the windows setting for SHELL, the one you get 
> to from windows' SystemProperties dialog, which was 
> C:/cygwin64/bin/bash. The /etc/passwd file specifies /bin/bash.
> 
> Is this expected behavior? (Though I can see why SHELL is there and I'd 
> need to change it)

/etc/passwd is deprecated. Since Cygwin 2.5 IIRC, Cygwin no longer looks for it,
getting information about users directly from the operating system instead.
Unless you have a special need for it, you should remove it. Same for
/etc/group.

In the absence of /etc/passwd, setting SHELL is the right way to set your login
shell.

Andrew


--
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

