[GHC] #7029: Add System.Environment.getExecutablePath

GHC cvs-ghc at haskell.org
Tue Jun 26 23:00:42 CEST 2012


#7029: Add System.Environment.getExecutablePath
---------------------------------+------------------------------------------
    Reporter:  tibbe             |       Owner:                  
        Type:  feature request   |      Status:  patch           
    Priority:  normal            |   Milestone:  7.6.1           
   Component:  libraries/base    |     Version:  7.4.2           
    Keywords:                    |          Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown    
  Difficulty:  Unknown           |    Testcase:                  
   Blockedby:                    |    Blocking:                  
     Related:                    |  
---------------------------------+------------------------------------------

Comment(by tibbe):

 Replying to [comment:5 pcapriotti]:
 > Ah, I was just thinking to fall back to `argv[0]` when `readlink`
 returns `ENOENT`, or even possibly when `readlink` fails for any reason.

 As discussed offline. Lets get this in and then start adding fallbacks for
 different more uncommon cases (Linux without /proc, BSDs, etc.)

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



More information about the Glasgow-haskell-bugs mailing list