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:from:subject:reply-to:to:references:message-id | |
:date:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; q=dns; s=default; b=mdcas0qCuQKTNk6k | |
CybwXhJywgx2GHZEjOlRwzOKNUeC4f4+WIysWvwBQgu1SPPmT15e9M35jIP1f33+ | |
+znJjPVfNL1xx7AecesyvCeNyZjk/CSbQNECgrg68J33AcEzO+HgjVP3K5E9BHSB | |
msm3HuzuObw7AuKMd6jDrDKcLTI= | |
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:from:subject:reply-to:to:references:message-id | |
:date:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; s=default; bh=qXsnCtZt2I4BIaQhb5H/KH | |
Ly7hw=; b=WnjKDsgxo0ZhmaIPGsuMs07XvxHH7a4/PfXwzR/ju2+7zDUK3jrSbe | |
IrMCVSFuqnYZKKs9SXWA+u33jHhPYjvoWxwr3BhmTdE8zluvPHVoSuYh+CVtptLX | |
RC7n6dgtPCytFG1mPUw3ryTfxBBn6iqBQCGvF+vnb7GgaZCdJjCRU= | |
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.1 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,KAM_NUMSUBJECT,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=login, quotes, Brian, brian |
X-HELO: | smtp-out-so.shaw.ca |
From: | Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca> |
Subject: | [ANNOUNCEMENT] Updated: mintty 2.9.5 |
Reply-To: | Brian DOT Inglis AT SystematicSw DOT ab DOT ca |
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> |
Openpgp: | preference=signencrypt |
Message-ID: | <890e52de-5115-0021-57ef-3178053e9328@SystematicSw.ab.ca> |
Date: | Fri, 7 Dec 2018 06:45:51 -0700 |
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: | <87in06la12.fsf@Rainer.invalid> |
X-IsSubscribed: | yes |
On 2018-12-06 12:39, Achim Gratz wrote: > Thomas Wolff writes: >> Am 05.12.2018 um 21:21 schrieb Achim Gratz: >>> Thomas Wolff writes: >>>> Ensuring /bin in PATH for user commands. >>> Blindly prepending /bin to the existing PATH is asking for trouble with >>> certain setups. Many setups: my Windows User PATH includes Cygwin {,/usr/local}/{,s}bin and the Windows System PATH, and my login scripts append new Cygwin paths before any Windows paths, used to allow interop using Cygwin and Windows consoles with Cygwin and non-Cygwin apps, which may only or also be available in MinGW/native exes e.g. BitKeeper. >> Just to clarify, this is only applicable to user-defined commands >> added to the extended context menu (option UserCommands), in order to >> ensure basic tools are available. If you see problems there, please be >> more specific. > > I'm not using this option, so my remark was just to remind you that > second-guessing the user w.r.t. PATH will eventually find at least one > user in an unfortunate (and in this case hard to debug) situation. So > the usual advice applies: > > a) Just warn about the missing PATH component without changing the PATH. after checking to see if the expected /bin is already present > 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. Maybe allow an env config file with comments, blank lines, env var definitions with values including embedded single and double quotes, env var refs, and one optional prefix command e.g. export, set, setenv, etc. which could be ignored when used without a definition e.g. "export PATH" rather than "export PATH=...". -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |