delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/08/29/10:06:11

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=TAEKbLV9Fg5f9cDn
8i2kyv59YxBV5FI6y0jz8yGKG/QwR8pUVQmGzWkcM/nE4T57dKdr0CtHoHN2/BYx
LXRv9JrkUeTk0aP0I9kYMMjjyypADM8DMM+SHktWfjXVz23mVGGrxBAYPu9bfhD2
muiGCg3oYsqTqYm1a/qWty4I/C0=
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=EPN+rUKu6IfM5TjzrAbD+H
lgcCA=; b=TFShY2WyBzFYcEqKEQSDbPDdp89fIOuJxGZh/TQqSZ1qZM4Tl/83ib
b2S9GUFTugRHY86pEtmA8S3fyXbctMOcPcbUpNJzIDpgRAHaVKNjsApYUFcxWSFF
DK45HbXGulyHelMVNKliJEuqyIzHxv80V1NyqDCoTwrc3E5RvCM7k=
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.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: forward2j.cmail.yandex.net
Authentication-Results: smtp3o.mail.yandex.net; dkim=pass header.i=@yandex.ru
X-Yandex-Suid-Status: 1 0,1 0
Date: Mon, 29 Aug 2016 16:58:03 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <1067665816.20160829165803@yandex.ru>
To: cyg Simple <cygsimple AT gmail DOT com>, cygwin AT cygwin DOT com
Subject: Re: Proposal for new cygwin.bat which is independent from install directory
In-Reply-To: <3442f9be-e22d-8032-ce25-a9cf670cdfa9@gmail.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> <3442f9be-e22d-8032-ce25-a9cf670cdfa9 AT gmail DOT com>
MIME-Version: 1.0
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.


-- 
With best regards,
Andrey Repin
Monday, August 29, 2016 16:57:44

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

- Raw text -


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