Web lists-archives.com

Re: How to handle length limit of PATH environment variable




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