[GHC] #1281: runghc, runhaskell invoke wrong ghc when not first ghc in PATH

GHC trac at galois.com
Sun Feb 24 16:31:09 EST 2008


#1281: runghc, runhaskell invoke wrong ghc when not first ghc in PATH
--------------------------+-------------------------------------------------
 Reporter:  Isaac Dupree  |          Owner:         
     Type:  bug           |         Status:  new    
 Priority:  normal        |      Milestone:  6.8.3  
Component:  Compiler      |        Version:  6.6    
 Severity:  normal        |     Resolution:         
 Keywords:                |     Difficulty:  Unknown
 Testcase:                |   Architecture:  Unknown
       Os:  Linux         |  
--------------------------+-------------------------------------------------
Comment (by igloo):

 OK, it turns out that it is zsh that handles scripts with a `#!` pointing
 at a script. If I try to do it in a bash shell then it doesn't work.
 There's more information on http://www.in-
 ulm.de/~mascheck/various/shebang/, but the gist is that we can't make
 runhaskell a script (at least, not without requiring users use
 `#!/usr/bin/env runhaskell`).

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


More information about the Glasgow-haskell-bugs mailing list