only one argument is allowed after the #! on the first line. however the
following should be portable if you must set the variable before
runhaskell is executed:

#!/bin/sh
-- > /dev/null 2>&1; MYENV=foo runhaskell $_  

import System.Environment

main = getEnv "MYENV" >>= print



-- 
John Meacham - ⑆repetae.net⑆john⑈
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to