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

#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 leroux): Replying to [comment:14 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.
Yes, that is what I was thinking as well. I guess I'll remove the export for `findExecutables` for now. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/2184#comment:15 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC