www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/12/10/08:54:36

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=pnQclgzUF5/qNvgk
UsySw+4TawZvdn0I0riIaCB0v0vTlV24jLTkZj6u62pHo8lL6W0QytJASp7sUJg4
U9fE5NFuq9d3G9yaIdD0LqiMOo5ZxmBMf42yZqyubVfAv0h3Qhc/rpBl7PxeRo4r
Szu39Q2Ow4my44WC2dNmd69Oq2s=
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=4Vg9yySrUaGdjDtIzKcveU
iz0b0=; b=iZqo1pMYpTmXn6dIRK0Z95pUL0NDmtGxYTjJAP+hKuYuhqtb4j0eEr
2I+aD6FNQBcEnZTQl+MuNtINGHeLspxpmBx4WcVsevs//HQ+fhubsib0ue8DsL0+
ClJ+LurZGbfuIL9XUScCe84ZpRDAlqCiQUGWtfboRyZAli1Jj9UFs=
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-Spam-SWARE-Status: No, score=2.3 required=5.0 tests=BAYES_50,HTML_MESSAGE,KAM_LAZY_DOMAIN_SECURITY,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=announcement, cmd, p.s, capable
X-HELO: mout.kundenserver.de
Subject: Re: [ANNOUNCEMENT] Updated: mintty 2.9.5
To: cygwin AT cygwin DOT com
References: <announce DOT ba14b773-7e0a-32fd-7a01-4979c60eeb4c AT towo DOT net> <87woon9133 DOT fsf AT Rainer DOT invalid> <a753939f-9724-296a-8ec5-643cd09b4f93 AT towo DOT net> <87in06la12 DOT fsf AT Rainer DOT invalid> <94206790 DOT 20181207003223 AT yandex DOT ru> <2f3cf57e-0b44-8c4a-b075-24743e4443d2 AT towo DOT net> <199122924 DOT 20181208004157 AT yandex DOT ru> <482194f6-37e5-6892-f63f-d7474cdab694 AT towo DOT net> <753995611 DOT 20181210050159 AT yandex DOT ru> <fa4263d7-9e16-42d0-be7d-8ef88dde5cff AT towo DOT net> <1277174748 DOT 20181210160853 AT yandex DOT ru>
From: Thomas Wolff <towo AT towo DOT net>
Message-ID: <b11ce6c0-333c-045b-74f8-d4d27be6f8da@towo.net>
Date: Mon, 10 Dec 2018 14:54:17 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <1277174748.20181210160853@yandex.ru>
X-IsSubscribed: yes

Hello Andrey,

On 10.12.2018 14:08, Andrey Repin wrote:
> Greetings, Thomas Wolff!
>
>>>>> BTW, Cygwin itself does it differently. %Cygwin%\bin is converted to /usr/bin.
>>>> This setup should be handled in the Posix path domain.
>>> Give me a good reason why should you second-guess Cygwin's own functionality?
>> You have apparently set up some cmd scripts as mintty user commands, so
>> you're thinking in Windows terms here.
> One is very distantly related to another.
> I set up programs to work as user commands, it's not actually relevant, if
> they are cmd scripts, or perl, both, or neither.
Acknowledged.

>> However, the idea is more to use cygwin tools for such purposes. In either
>> case, the path is handled within a cygwin session (mintty) and cygwin does
>> the conversion both ways, so it should be fine for you.
> The path is handled within a **cygwin** session, but mintty is not it.
Sure mintty is a cygwin program, linked with cygwin and thus starting a 
cygwin session.

> And you don't have to second-guess cygwin behavior, if you do it the way I
> propose. And you would be safe if behavior would one day change (though I do
> not foresee it in this case).
I'm not tampering with cygwin behaviour in any way, just changing PATH, 
so that a tool subsequently invoked by `popen` can use it.

> P.S.
> I've tried to do it "your way" for tests.
> Had enough of an issue starting Cygwin itself and rolled it back.
> Cygwin already quite capable of path conversion, no need to deny it this ability.
Not sure whether you're having a problem with your mintty command 
scripts. I've tested this thoroughly, everything works fine in these 
configuration combinations, with a test script D:\bin\test.cmd that 
echoes %MINTTY_SELECT% attached to keyboard shortcut Ctrl+Shift+t:

KeyFunctions=t:`test.cmd`
UserCommandsPath=D:\bin:%s

KeyFunctions=t:`test.cmd`
UserCommandsPath=/cygdrive/d/bin:%s

KeyFunctions=t:`D:/bin/test.cmd`
#UserCommandsPath=

KeyFunctions=t:`/cygdrive/d/bin/test.cmd`
#UserCommandsPath=

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