delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/12/09/21:05:20

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=xdU8kHzV62GGX/yV
25WmrT6O4wo8sJtR93Uh3QiOMzugWxpjj13hBYqt8Bb2jhOGFrvWdzcAFM3M4/CD
9+9wM5vxod4ruVz1GTGAn7eCZI/b18Ne3Trgjx91evosPn1OeH4+vLJtn8WLS7f/
jyNQmvnktARIinrzzBYs2mI+HW8=
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=XSxg6ghsVPB0GX2YY4j/cr
9efnU=; b=BI/E3SLxjdp+nv76IQ9snJsKvE3x/7CYB3jBrxtSC4qkR7GyrE0sQu
fqxNBeZqJp4IpvWYUXYd+K2JYX7p4+r2RiL2UsAVUVydW34Ux/GjaaIaECGdckEx
mm7Lrnn99XMUVPc0dzoPxbWdK3AIbuF1UzxqOCoE2G4mxIIKhV2R4=
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.5 required=5.0 tests=BAYES_50,FREEMAIL_FROM,KAM_NUMSUBJECT,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*RU:192.168.1.10, H*r:ip*192.168.1.10, Hx-spam-relays-external:192.168.1.10, strongly
X-HELO: forward101p.mail.yandex.net
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1544407501; bh=+dFhMwN2NU6lT/ibb2rmSNuIO29iirormZ9plF0cYKY=; h=Date:From:Reply-To:Message-ID:To:Subject:In-Reply-To:References; b=Q6nx1/X1G4x+Z5cfJVpo1nPaD4UxTJ0XEEMcRLhAlva8z1+/uREkd1aSHgzNXnGMc /j56aUeGU1haOHWq6NcH71hURakz4Xfw3h8FjSvaKg9VvEuQLF70dkMDWWCbPax2Gu lwA4bj/YcYYs2iIuo+BzBKWzrKpuUohzWlql00kA=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1544407501; bh=+dFhMwN2NU6lT/ibb2rmSNuIO29iirormZ9plF0cYKY=; h=Date:From:Reply-To:Message-ID:To:Subject:In-Reply-To:References; b=Q6nx1/X1G4x+Z5cfJVpo1nPaD4UxTJ0XEEMcRLhAlva8z1+/uREkd1aSHgzNXnGMc /j56aUeGU1haOHWq6NcH71hURakz4Xfw3h8FjSvaKg9VvEuQLF70dkMDWWCbPax2Gu lwA4bj/YcYYs2iIuo+BzBKWzrKpuUohzWlql00kA=
Authentication-Results: smtp1p.mail.yandex.net; dkim=pass header.i=@yandex.ru
Date: Mon, 10 Dec 2018 05:01:59 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <753995611.20181210050159@yandex.ru>
To: Thomas Wolff <towo AT towo DOT net>, cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] Updated: mintty 2.9.5
In-Reply-To: <482194f6-37e5-6892-f63f-d7474cdab694@towo.net>
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>
MIME-Version: 1.0
X-IsSubscribed: yes

Greetings, Thomas Wolff!

> Am 07.12.2018 um 22:41 schrieb Andrey Repin:
>> Greetings, Thomas Wolff!
>>
>>> Am 06.12.2018 um 22:32 schrieb Andrey Repin:
>>>> Greetings, Achim Gratz!
>>>>
>>>>> a) Just warn about the missing PATH component without changing the PATH.
>>>>> b) Give the user an option to let the command run with a separate PATH.
>>>>> Indeed there might be other things that are missing in the environment,
>>>>> so instead of just fixing up PATH you might consider using a wrapper
>>>>> that the user can change.
>>>> This is an interesting point.
>>>> Probably letting the user specify custom $PATH for quick commands (and save
>>>> current %PATH% as $ORIGINAL_PATH) may be the best choice.
>>>> The default can be %Cygwin%\bin:%PATH% or %PATH%:%Cygwin%\bin, I'm not very
>>>> concerned as long as it's explicit and customizable.
>>> I didn't expect the setup of this specific feature to be so strongly
>>> advocated :)
>>> In any case, things shouldn't become too complex. What I can image is an
>>> option UserCommandsPATH
>>> with one optional placeholder %s which would be replaced with the
>>> environment PATH;
>>> default /bin:%s, corresponding to current behaviour.
>> Using native paths and environment variable syntax, you can always use
>> ExpandEnvironmentString to get the %PATH% you need.
>> Cygwin DLL will then convert it to own version, avoiding you mangling it
>> yourself.
>> And I would strongly discourage from using placeholders familiar for you, but
>> unexpected by the end user and taken from entirely different area of knowledge.
>>
>> 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?

> I've uploaded a
> patch for evaluation, to the github repository.
> Thomas


-- 
With best regards,
Andrey Repin
Monday, December 10, 2018 5:01:12

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