X-Recipient: archive-cygwin@delorie.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:message-id:date:from:to:subject:references
	:content-type; q=dns; s=default; b=mGUGe6nV8oJLK/MNo1l2zQeSc+ldw
	hKk2tq1D42Iy3+cRfgoBCZceJxO4VIVQsNZR/rjxZxhDBdQV4At2MZkl+/q3p2w5
	gTtLkpSXjUh4dAvuIioy4VGYosmmJ4gDpycK2wfuTm6bjqrFU9NF7TFRKijTLeQ+
	YeOOp8P2dxf7EI=
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:message-id:date:from:to:subject:references
	:content-type; s=default; bh=eVG/3zlp1L9lU1XZvSwpsCY8AUI=; b=Jky
	x0gs2a+xhXFQDyhTOpgvGxwZGJsH7Bdglcw0Hq15L5HMGzppahnPwchL4cUJe5m7
	fbpIwDpiSl99wET/MwfynDgTjqcx4TcSp+jGUxpKKIL3IT0sSTeZu14muElKcrdX
	Z2H1SxFuIK9dQypSRS1/IMB1VeecupS+9jupdya4=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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,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
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)
Message-ID: <5ac60d72.d33ded0a.b9d4e.d0c4@mx.google.com>
Date: Thu, 05 Apr 2018 04:50:10 -0700 (PDT)
From: Steven Penny <svnpenn@gmail.com>
X-Google-Original-From: Steven Penny
To: cygwin@cygwin.com
Subject: Re: How to handle length limit of PATH environment variable
References: <ebd804f3-8e24-d96f-7ef4-0e1279afd929@gmail.com>
Content-Type: text/plain; charset=utf8; format=flowed
User-Agent: Tryst/2.4.0 (github.com/svnpenn/tryst)

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

