This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: How to handle length limit of PATH environment variable
- From: Steven Penny <svnpenn at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 05 Apr 2018 04:50:10 -0700 (PDT)
- Subject: Re: How to handle length limit of PATH environment variable
- References: <ebd804f3-8e24-d96f-7ef4-0e1279afd929@gmail.com>
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