delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/09/27/12:23:38

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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=FyvgJSL5fFRwVC6fyTF7kZvtsHcytIz+qPnePXbnFzy
eKyDVzFgQpCzf8YPgVzGJoqk644E/4LaIlCR0z5UjQf6x9Zcqyiv3xC1B0df9nrK
fn6vwk+TK3HbWRVkVcuX1FDUgjyoSDDaqfX5PSzlps2QJtw+BQuDSSLbqcdSeV5s
=
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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=cmTdCukGtZKdoNshRXfiQMGPApg=; b=OAZc1RTx0HTtIx7QY
M2GV7Jv4Sk5kH6QODG1zertcZ9DJhHLRgTG0BIreIz/e8gwQEhDF/bdTEAF/v4/o
pMedz+PR+XX668cQ2gYcvrsObz1x/BrLI3MGFJ8p90UykOEZ+AYZJNfl8W90TpO7
QndvxP0DtbHHSb5IBcXmR+/6TM=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=-4.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=troubles, H*MI:sk:1392107, H*i:sk:1392107, natively
X-HELO: Ishtar.sc.tlinx.org
Message-ID: <57EA9CEA.5010204@tlinx.org>
Date: Tue, 27 Sep 2016 09:23:06 -0700
From: Linda Walsh <cygwin AT tlinx DOT org>
User-Agent: Thunderbird
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Use of SHELL env var by login
References: <ae3654ca-c23d-975b-61e2-b7edebb3fc6d AT raelity DOT com> <c3kkub9l8g3pa9vv5j29eo252s8btcaf39 AT 4ax DOT com> <1392107644 DOT 20160927141237 AT yandex DOT ru>
In-Reply-To: <1392107644.20160927141237@yandex.ru>
X-IsSubscribed: yes

Andrey Repin wrote:
>> 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.
---
	Windows *doesn't* use "SHELL" to set your command line, it uses
COMSPEC.  So setting SHELL won't do MS programs any good.  I set mine for
the benefit of some non-MS programs that ran windows natively so I could
have an easier time in some of my own scripting.  The form C:/bin/bash.exe
was *NOT* set by cygwin prompting me to set it -- since it cygwin wanted a
windows path it would only have accepted C:\bin\bash.exe.  If it wanted a
non-windows, pure-posix-like path, it would have complained about referring
to /c as "C:".  

It's the unsupported "middle-ground" path that works in 
win32 and cygwin -- but my cygwin is install @ '/' not /c/ (though they
end up at the same point)  -- I mention the C: drive primarily for windows
programs (if they are on another drive, the path /bin/bash.exe is processed
as being on the "current drive", so in program like the _windows_ 
_versions_ of 'vim/gvim', that "cd" to the same directory as the file you are
editing, also end up changing drive letters (a network drive in my setup)
where /bin/bash doesn't work (as /bin/bash would only work when drive 'C' is
current).  You *can* set COMSPEC to something other than "cmd.exe", but I 
would not -- since some windows program depend on COMSPEC to be cmd.exe ( :-( ).

Setting SHELL will have no effect on Microsoft windows program -- it may
on some non-MS programs running on windows, but i've not found it provided
sufficient benefit for the troubles.  





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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019