delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/08/29/08:54:24

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=AQR5jcOBCnXyq6MR
Xm5qr825oAkwJPhWBJzy9ZGRntg5FQOFyCIpejtcaI0azxIlhguRkf3rVp+Di9jh
Y/YqyXs7DUsaO9NsYEEStE7iM3UQJ/YR9Fqw3wX38Ykp5TQMbyD7cgS6P5RlPE9t
rE0NZhKmGPZ0zX7QHTfAJEfGx2w=
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=hnQmka2i37lUrnk3LPngpa
gib1E=; b=HQko5Q9aCdOjqETPMtfOGzdWLIkbEF0chdps6cdGBrfgKRauDd2BN0
OIebAGuqQbv+cU09hGl1vAPKqZTx0iOjF2+MQd+A2+6AofHE6Elq0aJxN8Ddhly0
mDtGwHIbnbzCBvwAX1ACMvk8OhE1u9QWLDMyDPtJ8d7ZXHdIrBNLc=
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=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:785, Christians, christians, HX-Received:10.36.84.135
X-HELO: mail-it0-f42.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=vIMPmspGbUL+1uM3D7nyMhnjMIODOQYqqFO2ykHNMCE=; b=O3dfMWFpJbsQCKgkXtHiIjLrAsyi0+AkFE+7z6i4MqYut8E9hDPm6YEVBimJ3jGIYv 7cU5pdtmYCxNypu4WH1Y/Tj31ruTP/R8TGO7OiDWkY+T9zdjnfIpUVZyFlt17Lugfv5L CqtDKE5u5arvBrXQkzkt0Rbz2IovImcx1GUKzqoZaciNs75ZsEg5Lac0+rczjzIiuLkO p3fCwQXo0Ut85+siL5jHMkaKFDbEQNpzX0aeYcxJopGFRQ9hJ0W6vZexvshpwa7w5jYD OwmC4W4k2VreadOUm+g4DwoYsxCXBPoe3xz7HoYAhy2T4Hd0Z2/AHgFDSpFvxdWNMHR4 AlDQ==
X-Gm-Message-State: AE9vXwOP8WZmGZNDlgZhrUskJQwQbb4xBh0XmannahYbApJSf1JhRVaIeucseN6w8fs7cw==
X-Received: by 10.36.84.135 with SMTP id t129mr15982480ita.63.1472475242228; Mon, 29 Aug 2016 05:54:02 -0700 (PDT)
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> <daq2sb15dt33v54ekoc1p8f4snvepa0og0 AT 4ax DOT com> <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>
From: cyg Simple <cygsimple AT gmail DOT com>
Message-ID: <3442f9be-e22d-8032-ce25-a9cf670cdfa9@gmail.com>
Date: Mon, 29 Aug 2016 08:54:17 -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: <1765635230.20160827204405@yandex.ru>
X-IsSubscribed: yes


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.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019