delorie.com/archives/browse.cgi | search |
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; q=dns; s= | |
default; b=bnehfelsHP2lxLYDtKNFT48jtzp3KLQUrNfMa4Rf9yZOi9MTnvENJ | |
58kI/Dji2RTiMPbrwSPdn7//UkX/YX1A7HnCP3ReX3/qnfyIB8QekGSNxK6vPMK0 | |
B3rtwnFhrZqmTH/zf8deEeS7nkl0LowSvauBubxegiyGUoqpmINfMU= | |
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; s=default; | |
bh=VzoTEanFnRRTCVQ0iAi0FTU9q9M=; b=oYh9KGqYXFL9q03R+csj4mCwKpal | |
b0/eRmZxiTy7U6cuizJ14bzffOShlcBMEf+wRDJLgujYlnJn5jCO7owtW3ecjYVR | |
m6f5Kjs6v7RmkG/0zYEoBPCyjf18mWtYKtPl0AU68jfozxLicCDoZWyR5+JIC3Pv | |
l5FprMD5WWaZAR0= | |
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 autolearn=no version=3.3.2 spammy=P.S, PS, UD:P.S, HX-Priority:Normal |
X-HELO: | forward106j.mail.yandex.net |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1544219401; bh=4+XX58oH7B9VyAvd+Jo8sDSq8uLCn8JZhPegm6uec6Q=; h=Date:From:Reply-To:Message-ID:To:Subject:In-Reply-To:References; b=wZw3OyDtf8ylAHYqMUvM3E0NC2Y+3/ptHYaLQJp0oPRn+a0iY1AmKCzk6L8iGxyMY R7tRteSseFuxXcTPo/kXm9dvhrLz+1bgB2NTKwzgdgmQ3gP/p4/KT8sxjJoXnyW32U LoBo0SH2jarm5+DxEX8el5Q73lozKx8+jB9tIPMM= |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1544219400; bh=4+XX58oH7B9VyAvd+Jo8sDSq8uLCn8JZhPegm6uec6Q=; h=Date:From:Reply-To:Message-ID:To:Subject:In-Reply-To:References; b=AjbCGstIuhJW3XgbtJN+n9ij9ZXBWj3NJlwoGG7v1xnBI7fvsl9IiWn4OGUMDLS9Q P2nyeBXmAmqDgRaH19Pn4u8E+tbMBAvqpEKC0qveixGzCkxyKFRpkKvfke6mkYDW0I AHnZcKOh0p9MYLPA/iQkGUYZlbHb2EJtLFQWM+K4= |
Authentication-Results: | smtp2o.mail.yandex.net; dkim=pass header.i=@yandex.ru |
Date: | Sat, 8 Dec 2018 00:41:57 +0300 |
From: | Andrey Repin <anrdaemon AT yandex DOT ru> |
Reply-To: | cygwin AT cygwin DOT com |
Message-ID: | <199122924.20181208004157@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: | <2f3cf57e-0b44-8c4a-b075-24743e4443d2@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> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
------------0371231602613BCE1 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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. >> 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? This is an augmented CMD-like scripting platform. https://jpsoft.com/products/tcc-cmd-prompt.html Its "runtime" variant, TCC-RT, contains only scripting core, no interactive functionality, and is distributed for free. I attached the pair of scripts that I use to wrap .sh/.awk/.pl/etc. with. In manual mode, I can use it to launch any script provided /usr/bin/env can deal with it, as it's basically a wrapper around /usr/bin/env, which ensures that the first argument (the script name) has Cygwin notation. The fix-path thing is necessary to tweak startup behavior. Normal operation environment don't have /usr/local/bin in %PATH%, as that hides some Cygwin-specific scripts which have native counterparts in a different place. P.S. The %[variable] notation I use is not strictly necessary. %var or %var% works equally well, but may be disabled in options. I'm just playing on the safe side. -- With best regards, Andrey Repin Saturday, December 8, 2018 0:16:49 Sorry for my terrible english... ------------0371231602613BCE1 Content-Type: application/octet-stream; name="cygwrap.btm" Content-transfer-encoding: base64 Content-Disposition: attachment; filename="cygwrap.btm" QFNFVCBQUk9NUFQ9QCRTJFAkXw0KQEVDSE8gT0ZGDQpPTiBCUkVBSyBSRU0N Cg0KSUYgIiV+MSIgPT0gIi0taW5zdGFsbCIgR09UTyA6U0VUVVANCklGICIl fjEiID09ICIiIEdPVE8gOkJBTk5FUg0KDQpDQUxMICIlfmRwMGZpeC1wYXRo LmJ0bSINCg0KU0VUIEVOVj0lQFBBVEhbJUBGVUxMWyIlfjAiXV1lbnYuZXhl DQpTRVQgQ01ETkFNRT0lQEVYRUNTVFJbY3lncGF0aC5leGUgLXUgIiV+MSJd DQpTSElGVA0KDQpTRVQgTEFORz0lQEVYRUNTVFJbbG9jYWxlIC11VV0NCiIl W0VOVl0iIC0tICIlW0NNRE5BTUVdIiAlJA0KUVVJVCAlPw0KDQo6QkFOTkVS DQpFQ0hPIEN5Z3dpbiBzY3JpcHQgd3JhcHBlci4NCkVDSE8gVXNhZ2U6DQpF Q0hPLg0KRUNITyAgICVARklMRU5BTUVbIiV+MCJdIHNjcmlwdCBbcGFyYW1l dGVyc10NCkVDSE8gICAlQEZJTEVOQU1FWyIlfjAiXSAtLWluc3RhbGwgWy5l eHQgLi4uXQ0KRUNITy4NCkVDSE8gVGhlICIuc2giIGV4dGVuc2lvbiBpcyBh bHdheXMgcmVnaXN0ZXJlZCBvbiBpbnN0YWxsLg0KUVVJVA0KDQo6U0VUVVAN Cg0KRlRZUEUgdW5peHNoZWxsLnNjcmlwdD0iJVtDb21TcGVjXSIgL1MgL0Mg IiVARlVMTFsiJX4wIl0iICIlJTEiICUlKg0KU0hJRlQNCkRPIEVYVCBJTiAv TCAuc2ggJSQNCiAgSUZGICIlQExFRlRbMSwlW0VYVF1dIiA9PSAiLiIgVEhF Tg0KICAgIEFTU09DICVbRVhUXT11bml4c2hlbGwuc2NyaXB0DQogIEVORElG Rg0KRU5ERE8NCg== ------------0371231602613BCE1 Content-Type: application/octet-stream; name="fix-path.btm" Content-transfer-encoding: base64 Content-Disposition: attachment; filename="fix-path.btm" QEVDSE8gT0ZGDQoNClNFVCBPTERQQVRIPSVbUEFUSF0NClNFVCBfQ0JJTj0l QFJUUklNW1wsJUBQQVRIWyVARlVMTFsiJX4wIl1dXQ0KU0VUIFBBVEg9JUBS VFJJTVtcLCVAUEFUSFslW19DQklOXV1dL3Vzci9sb2NhbC9iaW47JVtfQ0JJ Tl0NCkRPIF9wYXRoIElOIC9UIjsiIC9MICVbT0xEUEFUSF0NCiAgSUZGICIl W19wYXRoXSIgIT0gIiVbX0NCSU5dIiBUSEVODQogICAgU0VUIFBBVEg9JVtQ QVRIXTslW19wYXRoXQ0KICBFTkRJRkYNCkVORERPDQpVTlNFVCBPTERQQVRI IF9DQklOIF9wYXRoDQo= ------------0371231602613BCE1 Content-Type: text/plain; charset=us-ascii -- 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 ------------0371231602613BCE1--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |