[GHC] #3186: findExeutable does not respect order of search path on Windows

GHC trac at galois.com
Wed Apr 22 12:35:27 EDT 2009


#3186: findExeutable does not respect order of search path on Windows
---------------------------------+------------------------------------------
 Reporter:  duncan               |          Owner:                  
     Type:  bug                  |         Status:  new             
 Priority:  normal               |      Milestone:                  
Component:  libraries/directory  |        Version:  6.10.2          
 Severity:  normal               |     Resolution:                  
 Keywords:                       |       Testcase:                  
       Os:  Windows              |   Architecture:  Unknown/Multiple
---------------------------------+------------------------------------------
Comment (by NeilMitchell):

 Ahh! That explains it! I am indeed running cabal from next to haddock.

 I don't see why findExecutable is using the path you started the program
 from. It seems reasonable to use the current directory first, but other
 than that should jump straight to the %PATH%. For finding .dll's it makes
 sense for findExecutable to try the relative to .exe path first, which I
 suspect is why this behaviour exists.

 Cabal should probably check GHC bin dir for haddock anyway, given the
 GHC/haddock dependency.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3186#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list