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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=Bw9gZab9Daq5TCIU RlZ6/88VQrwH+kVjM0ZhZxMkktBO1gJEbyPrfLboHNcYvSuMPZRIYODeRy6j5FSY Z4muo7PFV7NynpYghkl9R7ptO9NbwSFrv67iqbuh43+a2/FYOL4sW3VkmuMgRnx8 QXPdERiQBltiXey6dAmIqXFiltI= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=ziKYFz7yZ2tTcTLKYTIP0I tcUJE=; b=krOqVdyxRFmuMqgLv/YGrQH5g4Kq1Ed4DjazdF8Zk4NunkUtx7B8gO T0qXFqXFpiGjLZkm6m2wHOFw4Qt0stGuht+3FrsBRGHyiCUvbHl2tuhae8kH7pXk EqRYOPBGv2qtKSUJNsSguoI1LaYrtxJCgmfu5t3yAIMMpkh7O/PnA= 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=1.5 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=HX-Envelope-From:sk:Christi, DLL, H*M:online, HX-HELO:sk:mailout X-HELO: mailout10.t-online.de Subject: Re: Proposal for new cygwin.bat which is independent from install directory To: cygwin AT cygwin DOT 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> From: Christian Franke Message-ID: <57C1CCCD.2060007@t-online.de> Date: Sat, 27 Aug 2016 19:24:29 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40 MIME-Version: 1.0 In-Reply-To: <1545876997.20160827191030@yandex.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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. I guess this is one reason why the cygwin.bat file created by setup.exe also does this. -- 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