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: List-Subscribe: List-Archive: List-Post: List-Help: , 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: <87woon9133 DOT fsf AT Rainer DOT invalid> <87in06la12 DOT fsf AT Rainer DOT invalid> <94206790 DOT 20181207003223 AT yandex DOT ru> From: Thomas Wolff 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> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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