[Osgeo4w-trac] [osgeo4w] #295: findstr in addPath runs forever on windows7

OSGeo4W trac_osgeo4w at osgeo.org
Tue Jul 17 09:43:32 PDT 2012


#295: findstr in addPath runs forever on windows7
--------------------------+-------------------------------------------------
Reporter:  asgerpetersen  |       Owner:  osgeo4w-dev@…              
    Type:  defect         |      Status:  new                        
Priority:  major          |   Component:  Package                    
 Version:                 |    Keywords:                             
--------------------------+-------------------------------------------------

Comment(by maphew):

 Jef, I don't know that it's _needed_ exactly. I added it because a) it's
 just cleaner not to have duplicates, and b) there is a maximum PATH
 length*, though I've not personally run into it in a very very long time.

 I've forgotten the details, but I think my initial impetus for looking for
 and finding addpath.bat was running into .bat files in ./etc/ini/ from
 different packages adding the same PATH entries.

 That said, if it's causing problems we can drop it. It accomplishes what
 I'm after but I'm not entirely comfortable with it (there's too much going
 on inside addpath.bat file that I don't understand). In this ticket though
 the problem is not addpath but findstr (or something findstr depends on).

 * appears to be 1023 bytes - http://www.windowsitpro.com/article/tips/jsi-
 tip-1907-what-is-the-maximum-length-of-the-path-variable-,
 http://support.microsoft.com/kb/906469.

 ---
 As for starting with a minimal path instead of appending to the system
 default, I personally have a number of non-Windows and non-Osgeo4W utils
 that I use frequently. So using sys-default + osgeo4w is easier, for me. I
 imagine there might be others in the same camp. I'm flexible though and am
 happy to add the desired environment after the fact if need be (all it
 takes is dropping a new .bat file in `./etc/ini`).

-- 
Ticket URL: <http://trac.osgeo.org/osgeo4w/ticket/295#comment:14>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.


More information about the Osgeo4w-trac mailing list