[GHC] #3186: findExeutable does not respect order of search
path on Windows
GHC
trac at galois.com
Tue Jun 2 11:36:32 EDT 2009
#3186: findExeutable does not respect order of search path on Windows
------------------------------------+---------------------------------------
Reporter: duncan | Owner: simonmar
Type: bug | Status: closed
Priority: normal | Milestone: 6.12.1
Component: libraries/directory | Version: 6.10.2
Severity: normal | Resolution: fixed
Keywords: | Difficulty: Unknown
Testcase: | Os: Windows
Architecture: Unknown/Multiple |
------------------------------------+---------------------------------------
Changes (by simonmar):
* status: new => closed
* resolution: => fixed
Comment:
Fixed:
{{{
Fri May 29 13:34:49 BST 2009 Simon Marlow <marlowsd at gmail.com>
* Fix #3189: add docs to findExecutable
}}}
d'oh, I got the bug number wrong in the patch. Oh well.
The docs for `findExceutable` now say:
{{{
-- | Given an executable file name, searches for such file in the
-- directories listed in system PATH. The returned value is the path
-- to the found executable or Nothing if an executable with the given
-- name was not found. For example (findExecutable \"ghc\") gives you
-- the path to GHC.
--
-- The path returned by 'findExecutable' corresponds to the
-- program that would be executed by 'System.Process.createProcess'
-- when passed the same string (as a RawCommand, not a ShellCommand).
--
-- On Windows, 'findExecutable' calls the Win32 function 'SearchPath',
-- which may search other places before checking the directories in
-- @PATH at . Where it actually searches depends on registry settings,
-- but notably includes the directory containing the current
-- executable. See
-- <http://msdn.microsoft.com/en-us/library/aa365527.aspx> for more
-- details.
--
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3186#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list