From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 41502 invoked by alias); 27 Sep 2016 16:50:22 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 41490 invoked by uid 89); 27 Sep 2016 16:50:22 -0000 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 Received: from forward1h.cmail.yandex.net (HELO forward1h.cmail.yandex.net) (87.250.230.16) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 27 Sep 2016 16:50:12 +0000 Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b6:8]) by forward1h.cmail.yandex.net (Yandex) with ESMTP id A007620735; Tue, 27 Sep 2016 19:50:09 +0300 (MSK) Received: from smtp3p.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3p.mail.yandex.net (Yandex) with ESMTP id 102931320083; Tue, 27 Sep 2016 19:50:08 +0300 (MSK) Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id uT27buyThR-o8AmTfjq; Tue, 27 Sep 2016 19:50:08 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Authentication-Results: smtp3p.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-Suid-Status: 1 0,1 0 Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Tue, 27 Sep 2016 16:42:22 -0000 Date: Tue, 27 Sep 2016 17:12:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <1373245590.20160927194222@yandex.ru> To: Linda Walsh , cygwin@cygwin.com Subject: Re: Use of SHELL env var by login In-Reply-To: <57EA9CEA.5010204@tlinx.org> References: <1392107644.20160927141237@yandex.ru> <57EA9CEA.5010204@tlinx.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-09/txt/msg00357.txt.bz2 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