From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 95495 invoked by alias); 5 Apr 2018 11:50: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 95485 invoked by uid 89); 5 Apr 2018 11:50:14 -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,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=HELP, H*UA:github.com, H*M:google X-HELO: mail-qk0-f193.google.com Received: from mail-qk0-f193.google.com (HELO mail-qk0-f193.google.com) (209.85.220.193) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 05 Apr 2018 11:50:12 +0000 Received: by mail-qk0-f193.google.com with SMTP id v2so25923474qkh.10 for ; Thu, 05 Apr 2018 04:50:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:to:subject:references :user-agent; bh=aqhZwjmeMLWLHqHRydOMvWQvsdCyop/bpiusCTetfgU=; b=e3mv0dNbijRbKB2V68yhO1M0VXNg8d6zjZhyUz+cWkGx3c4cwQrmq5BIS8e4erhPhn WA9upN1Roun31mHq6ZzvQmO6mYvf21sc5hrd88kXKISyn36TyM76FJCORsRz9XvOlNo9 WxULdOLL7MV4IIu0B8Z/jjWesT2nu5+CrmyD+lgCUQwx/tyWVjTYm1eF2FX9d5wRBWO+ tD96KY/q7gSVzxh7VUjkfNMZpz05TGUJS0oQrRTVLpP97wB4iTYBy5SBSi3BRmoQbZBa txnlkLJbHo8jAAMAGpUWnNPtWcRYKca4YpgXnn89ub2Hro91tzIuZHYFfl3YC9e3V8Gw vU6Q== X-Gm-Message-State: ALQs6tCZoEAMjScfraeBdGxP3kwW67T6nCqfDUip7Jw9IwJtilUWGaLs 0ruFzOo/3fKPUHHKuvJQ6XsDnw== X-Google-Smtp-Source: AIpwx49sWiOrE9DpV7WEGx0WhdCOPwaSf6qqi1O1meeF6p1O5Xwlakh5LGY78Quqej0qiyqp/vZ6dQ== X-Received: by 10.55.214.210 with SMTP id p79mr15932231qkl.19.1522929010871; Thu, 05 Apr 2018 04:50:10 -0700 (PDT) Received: from xIH ([2605:6000:9fc0:56:c2a:f066:2911:f71b]) by smtp.gmail.com with ESMTPSA id j19sm6147207qtf.21.2018.04.05.04.50.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Apr 2018 04:50:10 -0700 (PDT) Message-ID: <5ac60d72.d33ded0a.b9d4e.d0c4@mx.google.com> Date: Thu, 05 Apr 2018 11:50:00 -0000 From: Steven Penny X-Google-Original-From: Steven Penny To: cygwin@cygwin.com Subject: Re: How to handle length limit of PATH environment variable References: Content-Type: text/plain; charset=utf8; format=flowed User-Agent: Tryst/2.4.0 (github.com/svnpenn/tryst) X-SW-Source: 2018-04/txt/msg00036.txt.bz2 On Thu, 5 Apr 2018 11:19:01, Peter Bauer wrote: > 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. My Cygwin PATH looks like this: PATH=/usr/local/bin:/usr/bin However I also have an install script that has lines like this: ln -s 'c:/program files/gpac/mp4box.exe' /usr/local/bin This is good because you often *dont* want to be adding these directories to the PATH. Good example is "C:\Windows\System32". It might have some programs you want on the PATH (FTP, PING, REG, SETX), but if you add the whole directory you are going to get collisions (EXPAND, FC, FIND, HELP, RESET, etc) -- 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