delorie.com/archives/browse.cgi | search |
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=ChxNq8+HSBTWsJcH | |
tLkmN9f1zxcqSRswywffQ7QHaPN7U0PQzwz37x7CniLlv0fydPaKq1b0mCkKeCdQ | |
VaKp3dGzUI8ofnA1zQwqX5I5kkNz87vlR0uWc781roWUzdJYAhQ3jCoznqoGpePm | |
65W3Bw+R1R4h1s+j9V6p7XmWIL0= | |
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=SIXuMagypAsU75RM29CnuP | |
hRWiU=; b=u3y96aarUjrkRc9KDQHXBpnQNOwcKbaFzvVZKfRhrXY0CaUOX1P4ys | |
lBd+5Has1nXhcgHudWoa+qg3w8/FHbeuobqqwmttCj2VGD3lKzHp+Nj8OZdmLFvD | |
SIgUR/ZGmi0xWBc/Yspv7SKBo9LrgYkSpZ/G2nD2f0VitYwxDoIko= | |
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=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*MI:sk:c3kkub9, yandexru, UD:yandex.ru, yandex.ru |
X-HELO: | forward1h.cmail.yandex.net |
Authentication-Results: | smtp3p.mail.yandex.net; dkim=pass header.i=@yandex.ru |
X-Yandex-Suid-Status: | 1 0,1 0 |
Date: | Tue, 27 Sep 2016 19:42:22 +0300 |
From: | Andrey Repin <anrdaemon AT yandex DOT ru> |
Reply-To: | cygwin AT cygwin DOT com |
Message-ID: | <1373245590.20160927194222@yandex.ru> |
To: | Linda Walsh <cygwin AT tlinx DOT org>, cygwin AT cygwin DOT com |
Subject: | Re: Use of SHELL env var by login |
In-Reply-To: | <57EA9CEA.5010204@tlinx.org> |
References: | <ae3654ca-c23d-975b-61e2-b7edebb3fc6d AT raelity DOT com> <c3kkub9l8g3pa9vv5j29eo252s8btcaf39 AT 4ax DOT com> <1392107644 DOT 20160927141237 AT yandex DOT ru> <57EA9CEA DOT 5010204 AT tlinx DOT org> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Greetings, Linda Walsh! > 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. Do note I didn't mention any specific variable names. And I've explicitly outlined exactly the case you are describing in your post - integration. If you indeed have "more other" applications (native ports of certain tools, which still use environment as a go-to reference sources), then by all means, do what you find best for you. I do that all the time, too, but I also have Cygwin itself configured to match the environment I expect to have. Just to avoid issues. > 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 -- With best regards, Andrey Repin Tuesday, September 27, 2016 19:39:05 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |