[GHC] #2184: if findExecutable finds a file that matchs the argument, check if it is an executable

GHC ghc-devs at haskell.org
Sun Sep 22 18:08:14 CEST 2013


#2184: if findExecutable finds a file that matchs the argument, check if it is an
executable
-------------------------------------+-------------------------------------
        Reporter:  iago              |            Owner:  leroux
            Type:  bug               |           Status:  patch
        Priority:  lowest            |        Milestone:  7.6.2
       Component:                    |          Version:  6.8.2
  libraries/directory                |         Keywords:  findExecutable
      Resolution:                    |  check executable
Operating System:  Linux             |     Architecture:  x86
 Type of failure:  None/Unknown      |       Difficulty:  Unknown
       Test Case:                    |       Blocked By:
        Blocking:                    |  Related Tickets:
-------------------------------------+-------------------------------------

Comment (by joeyadams):

 Thanks for implementing this.  I have an application that could use
 `findFiles` to locate its configuration files.

 An issue I noticed: `findExecutables` only returns the first match on
 Windows.  This could lead to compatibility problems if someone uses
 `findExecutables` and filters the resulting list.  I don't think
 `findExecutables` should be exported.  But if someone needs it, it should
 behave consistently between Windows and other systems.

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



More information about the ghc-tickets mailing list