delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/12/07/15:12:55

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=M8N7jQgU1pAKeaOy
zmI441q4fEbILPuAHRIyZDNzYtPeU1Drhv+IpGHtSpYk0BQkQt0Ai+8d4tfxlwQq
VC8XRkOjWeZkWEbtg7CcYkeBE7HziFR5wMsh7kUNjlR0XwKUUYmaNDwNKqbjCatU
HJsndVYIKtJVpQIErP+Vpeki4QM=
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=CagaA3UsAojkBskRL4Vzlp
RVPAs=; b=jhR+8H9PuKA7muNhQzbib7QLegmAGt+Xvs2w1mFMbF49rIGVm4gGUF
nOzS8nTouMxqHxaCtpsB2pJMFbJ4iRgV9LKkQMs6v82rmZyXkQ/kgePbg9k21Kfo
E8z1rNS134C+Ai7so7xUvxl498BZe36BOMwe3lvms4aQrXHocVJcA=
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=1.5 required=5.0 tests=BAYES_40,KAM_LAZY_DOMAIN_SECURITY,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=anybody, 06122018, 06.12.2018, $path
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>
From: Thomas Wolff <towo AT towo DOT net>
Message-ID: <2f3cf57e-0b44-8c4a-b075-24743e4443d2@towo.net>
Date: Fri, 7 Dec 2018 21:12:36 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2
MIME-Version: 1.0
In-Reply-To: <94206790.20181207003223@yandex.ru>
X-IsSubscribed: yes

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.

> If anybody need a wrapper, they may write and use it by themselves.
>
> (I already have one, written in TCC, working quite well.)
Out of curiosity, what's TCC and what does your wrapper do?

Thomas

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