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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=PMjEtzAPNQP1KRa1 bSKGxvV4etv9yoTzdv43SmkXCCb2ahuUsYlVfG9xYtNyXyqlPQsxS48GfIxYYg8q ZRAmzGvqF38CfTerPY/BMCFjcjm7sfYRb81Fn7a8+4Gbe4QyFoQ5x4yf9OIlfgJk IQBhGVVdhU7r9QXZHgLuMTOoU9I= 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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=9Bj0cbi2Lc/Yn3I8oHEI8E pVe/c=; b=rKaUnM2jr1zeZ4F/Gm09CD1hDRP4v2tsu00PKf1wiLFoiGb5uEb2WY 7GDjAgHgVyOVLhszKyyxgR72zf24m+6aLWG5JfPqKxatgFL/pDI9EffQqdid2p5C QYPzWnVWTACAKhMp4zlfkT+/zsMRRV/Bh4KTskocDCmu78djfN5Ac= 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=2.0 required=5.0 tests=BAYES_50,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*Ad:D*gov, Schulman, schulman, H*r:ip*192.168.1.10 X-HELO: forward4h.cmail.yandex.net Authentication-Results: smtp1p.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-Suid-Status: 1 0,1 0 Date: Tue, 27 Sep 2016 14:12:37 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <1392107644.20160927141237@yandex.ru> To: Andrew Schulman , cygwin AT cygwin DOT com Subject: Re: Use of SHELL env var by login In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Greetings, Andrew Schulman! >> 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. One of the right ways, I'd say. If your aim is the integration of both environments, you MAY set variables, but if you then start a login shell, they may be voided by the startup scripts. I would advise using "more other" ways to configure Cygwin, i.e. using SAM DB comment field. -- With best regards, Andrey Repin Tuesday, September 27, 2016 14:09:19 Sorry for my terrible english... -- 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