From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 58230 invoked by alias); 6 Dec 2018 19:39:54 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 58216 invoked by uid 89); 6 Dec 2018 19:39:53 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=BAYES_05,KAM_NUMSUBJECT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=05122018, menu, Gratz, 05.12.2018 X-HELO: vsmx011.vodafonemail.xion.oxcs.net Received: from Unknown (HELO vsmx011.vodafonemail.xion.oxcs.net) (153.92.174.89) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 06 Dec 2018 19:39:51 +0000 Received: from vsmx003.vodafonemail.xion.oxcs.net (unknown [192.168.75.197]) by mta-5-out.mta.xion.oxcs.net (Postfix) with ESMTP id 10AEC3E0588 for ; Thu, 6 Dec 2018 19:39:43 +0000 (UTC) Received: from Gertrud (unknown [91.47.63.38]) by mta-7-out.mta.xion.oxcs.net (Postfix) with ESMTPA id E17D330012C for ; Thu, 6 Dec 2018 19:39:40 +0000 (UTC) From: Achim Gratz To: cygwin@cygwin.com Subject: Re: [ANNOUNCEMENT] Updated: mintty 2.9.5 References: <87woon9133.fsf@Rainer.invalid> Date: Thu, 06 Dec 2018 19:39:00 -0000 In-Reply-To: (Thomas Wolff's message of "Wed, 5 Dec 2018 22:46:05 +0100") Message-ID: <87in06la12.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2018-12/txt/msg00071.txt.bz2 Thomas Wolff writes: > Am 05.12.2018 um 21:21 schrieb Achim Gratz: >> Thomas Wolff writes: >>> Other >>> =C2=A0 * Ensuring /bin in PATH for user commands. >> Blindly prepending /bin to the existing PATH is asking for trouble with = certain setups. > 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. 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. Regards, Achim. --=20 +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for KORG EX-800 and Poly-800MkII V0.9: http://Synth.Stromeko.net/Downloads.html#KorgSDada -- 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