X-Recipient: archive-cygwin@delorie.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=Zx1BanF5Y5ZOvV5B
	uxsMUhRmLDJGPRdz2H20rLvEMFTioBVLnWt8+VzmeasDxO/fYQymMNxhb28A6jlY
	MCNQiJf2uvfr29nBZRjdEUsLUrOsUqB97XlKQeLr4pzB+Ux+M1szM8Dz1hCexjmC
	oDQ0Msd7kb0OZ/RFNTNayHwqXG8=
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=cvQ6CTf9gb7zYjz3vpBEYG
	HESAo=; b=ProroNvVbHc6n9+Ujv2BDgk/QvmypD179k9Anf+i3CC90bYu9eOL0K
	huGwAfoJ+QIW8dW/e/z8BVZ1mwV3WmlzEXGcyirtvopOtse4SgNff1BZCbz5XZk0
	cpck4D6eVhOtjcA6l96f1cf7+LtbvINIhnh85Op2b6ecmQHdMM3C4=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:sk:d27-96-
X-HELO: mail-it0-f48.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20130820;        h=x-gm-message-state:subject:to:references:from:message-id:date         :user-agent:mime-version:in-reply-to:content-transfer-encoding;        bh=l+V43kbevx59DHg/pwmyowVN8RyKWEvonun7St/9Dsg=;        b=Y5SKWZtafP7b+QozkVwyIT8o8CyvZSq+gumD3VmTltlUIuap0Ub6IAbvv37AvD8QJ6         HAL9jf+qCuBHm/xZYGSEPNZyuo89hOomO0LB8o08mUIzOJ7WzPgfn9yxTfkjAQYMYB1o         a+gjxAyaca8TQlo2FI+OfnNswi4ao5EYCIn/J6syk6bJHYnmjZNphEjRgBMUcyOzBHeH         CAzejzLfnXu1Bz+Lu5fHnXt2wtNyRkgiP5rFjQirdTd5DBAUUBoXQ2i8rdtmEBEt8lhT         2NQfx5ib38k/9UECfWT7bSHJ/0McyQmZW/OV0uJrdmvQa7Fr1TGzkZP2HkjnHsriPV4p         uV/g==
X-Gm-Message-State: AE9vXwOUWJUD88RC7sE5Dq168k9HNJK+Fg6Ws0eIioc2lYlNowOJLZPFojvHfUi5xGXtwA==
X-Received: by 10.107.33.77 with SMTP id h74mr65334ioh.166.1472576224357;        Tue, 30 Aug 2016 09:57:04 -0700 (PDT)
Subject: Re: Proposal for new cygwin.bat which is independent from install directory
To: cygwin@cygwin.com
References: <57C06CFA.4060405@t-online.de> <1974732522.20160826193931@yandex.ru> <daq2sb15dt33v54ekoc1p8f4snvepa0og0@4ax.com> <57C1788B.2010705@t-online.de> <1545876997.20160827191030@yandex.ru> <57C1CCCD.2060007@t-online.de> <1765635230.20160827204405@yandex.ru> <3442f9be-e22d-8032-ce25-a9cf670cdfa9@gmail.com> <1067665816.20160829165803@yandex.ru>
From: cyg Simple <cygsimple@gmail.com>
Message-ID: <11e18109-f9ba-4ffb-3564-340a90f2c5eb@gmail.com>
Date: Tue, 30 Aug 2016 12:57:22 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
MIME-Version: 1.0
In-Reply-To: <1067665816.20160829165803@yandex.ru>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes

On 8/29/2016 9:58 AM, Andrey Repin wrote:
> 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.

-- 
cyg Simple

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

