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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=h912XSLcYJrUrtjL oEfECxP5TaWMs0J67QbL3jmMJEPI+Vbmr3iARRblF3afLdIURRy19KBCJU26TJaq yIeShshJ6b07GV+PZAn97s7cRdnCemOImXAbYgcWmWtGQQETiGPXMYpOr7a5yabA sGPm0J3kXgjawSNhRW2/ehQMJXc= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=JQ4POkYOimIA3gVXLVoghG nv774=; b=ibNiWr3d3kKitRke2IQwEk+R1kKfh+zrX8MGTzg8+viWo7y7l9s0cG VD1qHX7emlrG2VOKEgNoyMNcDea09QBW9QksLTxCmdetdVoUp7vf1/3y1jbKoaO7 o1GkF8BjdH72HnHhjWQ4A2U4rlpzo6AwcBRrpI0L/3INZnnk3OovE= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=mais, soit, quand, ny X-HELO: postman.abacus.ch Subject: Re: How to handle length limit of PATH environment variable To: cygwin AT cygwin DOT com References: From: Wolf Geldmacher Message-ID: <08077aa1-2da3-d381-8592-20c39acf063d@abacus.ch> Date: Thu, 5 Apr 2018 12:05:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Note-from-DJ: This may be spam On 05.04.2018 11:19, Peter Bauer wrote: > hi, > > i was bitten by the length limit of the PATH variable of 4095 > characters (see [1]) and could not find a way around it. This means i > have a lot of software packages in different directories and each of > them adds itself to the PATH so one can run the executables and have > the shared libs available. Under Windows there is the "short path > workaround" but what to do under Cygwin? > Creating links with shorter names to the directories is not feasible > since there may be different users and different directories per user. > > Any ideas? On Unix (though not on cygwin) I've previously solved such issues by writing a script that collects symlinks to the contents of some list of directories in a few (system and/or user specific) directories. These few directories then take the place of the list. The script will need to be re-run whenever there are changes to the directories on the list, but that can usually be automated. Cheers, Wolf > thx, > Peter > > > [1] > https://software.intel.com/en-us/articles/limitation-to-the-length-of-the-system-path-variable > > -- > 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 > -- "Il semble que la perfection soit atteinte non quand il n'y a plus rien à ajouter, mais quand il n'y a plus rien à retrancher." - Antoine de Saint-Exupéry, Terre des Hommes -- 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