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

OSGeo4W trac_osgeo4w at osgeo.org
Wed Jun 27 09:14:03 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):

 Thanks for the error report. I haven't reproduced the problem here and
 need some more information to help troubleshoot: what are the steps
 leading up to findstr running forever? Does this happen when merely
 starting the Osgeo4W shell? What about when running programs from within
 the shell? (as opposed to Start Menu or desktop shortcuts.)

 What edit do you make to addpath.bat to bypass the freezing?

 ...here's a thought: does findstr work at all? Try something like this
 from a non-osgeo4w command shell (Start > Run > cmd [enter]): `findstr /s
 "findstr" c:\osgeo4w\*.bat*`

 The results should resemble (`b:\o4w` is my `%osgeo4w_root%`):
 B:\o4w>findstr /s "findstr" b:\o4w\*.bat*
 b:\o4w\bin\addpath.bat:echo("!new!"|findstr /i /r
 /c:^"^^\"[a-zA-Z]:[\\/][^\\/]" ^
 b:\o4w\bin\addpath.bat:    echo(%%B|findstr /i /r
 /c:^"^^\"[a-zA-Z]:[\\/][^\\/]" ^
 b:\o4w\bin\inpath.bat:echo("!new!"|findstr /i /r
 /c:^"^^\"[a-zA-Z]:[\\/][^\\/]" ^
 b:\o4w\bin\inpath.bat:    echo(%%B|findstr /i /r
 /c:^"^^\"[a-zA-Z]:[\\/][^\\/]" ^

 As as I know the Qgis stand alone install doesn't use addpath.bat. Since
 you've attempted both maybe the O4W and the stand alone are walking over
 each other in some way.(?)

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

More information about the osgeo4w-dev mailing list