From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 63350 invoked by alias); 5 Apr 2018 18:48:28 -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 63176 invoked by uid 89); 5 Apr 2018 18:48:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=WAVE, wave, Hx-spam-relays-external:ESMTPA X-HELO: vsmx009.vodafonemail.xion.oxcs.net Received: from vsmx009.vodafonemail.xion.oxcs.net (HELO vsmx009.vodafonemail.xion.oxcs.net) (153.92.174.87) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 05 Apr 2018 18:48:03 +0000 Received: from vsmx001.vodafonemail.xion.oxcs.net (unknown [192.168.75.191]) by mta-5-out.mta.xion.oxcs.net (Postfix) with ESMTP id DD284C08FA for ; Thu, 5 Apr 2018 18:47:56 +0000 (UTC) Received: from Gertrud (unknown [91.47.59.44]) by mta-5-out.mta.xion.oxcs.net (Postfix) with ESMTPA id B320530029B for ; Thu, 5 Apr 2018 18:47:54 +0000 (UTC) From: Achim Gratz To: cygwin@cygwin.com Subject: Re: How to handle length limit of PATH environment variable References: <1209462188.20180405203904@yandex.ru> Date: Thu, 05 Apr 2018 18:48:00 -0000 In-Reply-To: <1209462188.20180405203904@yandex.ru> (Andrey Repin's message of "Thu, 5 Apr 2018 20:39:04 +0300") Message-ID: <87o9ixfq21.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-VADE-STATUS: LEGIT X-SW-Source: 2018-04/txt/msg00040.txt.bz2 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. For tcsh I have patched /etc/csh.login to do the moral equivalent; I guess that should be packaged with tcsh eventually. 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. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf rackAttack V1.04R1: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada -- 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