From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 101874 invoked by alias); 6 Dec 2018 07:22:42 -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 101837 invoked by uid 89); 6 Dec 2018 07:22:39 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=login, spawned, globally, HContent-Transfer-Encoding:8bit X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.17.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 06 Dec 2018 07:22:37 +0000 Received: from [192.168.178.45] ([95.91.242.178]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1Mcp3E-1h4Piy2piU-00ZxLD for ; Thu, 06 Dec 2018 08:22:34 +0100 Subject: Re: [ANNOUNCEMENT] Updated: mintty 2.9.5 To: cygwin@cygwin.com References: <87woon9133.fsf@Rainer.invalid> <853410540.20181206031831@yandex.ru> From: Thomas Wolff Message-ID: <7b2028f0-ff6b-216f-8e92-71fa2af55e16@towo.net> Date: Thu, 06 Dec 2018 07:22:00 -0000 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: <853410540.20181206031831@yandex.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2018-12/txt/msg00061.txt.bz2 Am 06.12.2018 um 01:18 schrieb Andrey Repin: > Greetings, Thomas Wolff! > >> Am 05.12.2018 um 21:21 schrieb Achim Gratz: >>> Thomas Wolff writes: >>>> Other >>>>   * 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. > Yes, I see problem there. > I have Cygwin in my regular %PATH% at the place I want it. I.e. when using > tools and commands, I expect them to behave in a certain way. > Changing it have potential to produce unexpected results. The issue that caused me to apply this change: if you start mintty from a desktop shortcut, cygwin /bin is not in the PATH of mintty (unless you would set it globally in Windows, which is discouraged). It will be inside your login shell, of course, but user commands are spawned from mintty directly. I could append rather than prepend /bin, but then another tool like `sed` might be in the path and user commands behave unexpectedly. I could also check whether it's in PATH already, and then prepend. 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