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=Em8ZoUIdpH+Wv+B3 Jz0oC36IoYgVS8BmnofslAXy1e3e44Eix3Kj+lh+l5qbxCFfgFqwpVoWt7inp1E7 HKpbp2+eZDuu+VW0ShuBibIqnbI/BQj1XAiYY6ygr6b1OPZ7eBodpcGqowLXvi4v +BBoXKvMy14ONM/QN/Y1AKRttjU= 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=dRlwj6B2I9/VIxbSHutFhM Qa8qs=; b=e/JVpU8TehLfDkKrqX3ckKGknKoxSDQcaajcBnHYOnJClSG2KCaCpp OS8L00JCSBIHrl9SBxs8E+LPrWEtHsX7dJlj6nSQQ6/zpcCe+Og1VY0KGgILnn8I b/Sgzev4Jk4C92oxX5kuDrHX+XL4+coPgxi61XpqYsabnLpekykE0= 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*F:D*yandex.ru, yandexru, UD:yandex.ru, yandex.ru X-HELO: forward5p.cmail.yandex.net Authentication-Results: smtp3h.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-Suid-Status: 1 0,1 0 Date: Tue, 30 Aug 2016 23:41:04 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <159686205.20160830234104@yandex.ru> To: cyg Simple , cygwin AT cygwin DOT com Subject: Re: Proposal for new cygwin.bat which is independent from install directory In-Reply-To: <11e18109-f9ba-4ffb-3564-340a90f2c5eb@gmail.com> References: <57C06CFA DOT 4060405 AT t-online DOT de> <1974732522 DOT 20160826193931 AT yandex DOT ru> <57C1788B DOT 2010705 AT t-online DOT de> <1545876997 DOT 20160827191030 AT yandex DOT ru> <57C1CCCD DOT 2060007 AT t-online DOT de> <1765635230 DOT 20160827204405 AT yandex DOT ru> <3442f9be-e22d-8032-ce25-a9cf670cdfa9 AT gmail DOT com> <1067665816 DOT 20160829165803 AT yandex DOT ru> <11e18109-f9ba-4ffb-3564-340a90f2c5eb AT gmail DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Greetings, cyg Simple! >>> On 8/27/2016 1:44 PM, Andrey Repin wrote: >>>> Greetings, Christian Franke! >>>> >>>>> Andrey Repin wrote: >>>>>>> Hmm... therefore it is also better to change the last line to: >>>>>>> .\bash --login -i >>>>>> "%~dp0bin\bash.exe" --login -i >>>> >>>>> Changing the directory before bash is run is a security measure because >>>>> the current directory may be in DLL search path. >>>> >>>> And? >>>> >>>>> I guess this is one reason why the cygwin.bat file created by setup.exe also >>>>> does this. >>>> >>>> I'm starting an application by its full path. >>>> >>>> >> >>> So... It doesn't make it any more correct than Christian's method which >>> is what I prefer. IIRC older versions of Windows required the change >>> directory to execute Cygwin properly. >> >> How much "older"? Win'95? It is no longer supported. >> > It doesn't matter how old; it matters as a reason for the way it was > written in the first place. It gives one pause as to making such a > change since it might not work in all cases where the change directory does. I did made that pause. And I considered OS without cmd.exe not worth consideration. -- With best regards, Andrey Repin Tuesday, August 30, 2016 23:40:08 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