From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 40521 invoked by alias); 6 Apr 2018 00:35:14 -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 40511 invoked by uid 89); 6 Apr 2018 00:35:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=HX-Priority:Normal, H*F:D*yandex.ru, H*r:present, UD:ru X-HELO: forward106j.mail.yandex.net Received: from forward106j.mail.yandex.net (HELO forward106j.mail.yandex.net) (5.45.198.249) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 06 Apr 2018 00:35:12 +0000 Received: from mxback15j.mail.yandex.net (mxback15j.mail.yandex.net [IPv6:2a02:6b8:0:1619::91]) by forward106j.mail.yandex.net (Yandex) with ESMTP id 0125B1805184; Fri, 6 Apr 2018 03:35:08 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback15j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id YohVHNuw1B-Z1uSPQkK; Fri, 06 Apr 2018 03:35:01 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id aigHob62jN-Z1b8tSMU; Fri, 06 Apr 2018 03:35:01 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Authentication-Results: smtp4o.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Fri, 06 Apr 2018 00:20:35 -0000 Date: Fri, 06 Apr 2018 00:35:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <958762789.20180406032035@yandex.ru> To: Achim Gratz , cygwin@cygwin.com Subject: Re: How to handle length limit of PATH environment variable In-Reply-To: <87o9ixfq21.fsf@Rainer.invalid> References: <1209462188.20180405203904@yandex.ru> <87o9ixfq21.fsf@Rainer.invalid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-04/txt/msg00044.txt.bz2 Greetings, Achim Gratz! > Andrey Repin writes: >> P.P.S. >> Partial solution could be a wrapper that reduce PATH length by dropping >> nonessential/duplicate/Win-specific paths before invoking Cygwin terminal. >> I have such a wrapper for my own reasons. > You don't need one if your login shell is a POSIX shell and you don't > use Windows applications if you have set a system or user variable > CYGWIN_NOWINPATH to a non-empty value. If-if-if. What if I explicitly do not want to do that? It reduces interoperability to miniscule levels. > It's usually way easier to add to a clean path than removing cruft and I > generally lean into the direction of using wrapper scripts for Windows > applications that I need to use from Cygwin since quite often some other > things need attention aside from PATH. For me, it's easier to wrap Cygwin apps, since I have sane wrapping material (and many Cygwin tools not requiring any wrapping to begin with). -- With best regards, Andrey Repin Friday, April 6, 2018 03:18:18 Sorry for my terrible english... -- 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