[GHC] #3186: findExeutable does not respect order of search
path on Windows
GHC
trac at galois.com
Wed Apr 22 12:28:13 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 duncan):
Ahh! It's looking in the directory where the .exe for the currently
running process lives. So when we're in ghci (or runghc Setup) then it
always finds the haddock.exe in the same dir as ghci/runghc.
Neil, I'm guessing that you're running `cabal.exe` from `C:\Program
Files\Haskell\bin\` is that correct? If so, that explains why it's picking
up `haddock.exe` from the same directory.
So the question is what behaviour we want. I guess it is good if
`findExecutable` and `runProcess` are consistent with each other. However
it should be clearly documented along with `findExecutable` that the
location of the .exe of the current process is relevant. Cabal should
probably look for haddock first in the ghc bin dir and only secondarily
try using `findExecutable` (sigh).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3186#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list