The following script works fine (no matter if the environment variable exists or
not) until you set its sticky bit. Then it just responds with
runhugs:
#!/usr/local/bin/runhugs
module Main(main) where
import System
main :: IO ()
main = do
r <- catch (getEnv "EDITOR") (\_-> return "Nothing")
putStr r
putStr "End\n"
If you write a shell script which calls runhugs with the script above, then it
works, independent of the setting of the sticky bit.
This problem arises when you write cgi-scripts with the sticky bit.
Can you explain the behaviour?
By the way, it would be nice if runhugs gave more verbose error messages ;-)
Olaf
--
OLAF CHITIL, Lehrstuhl fuer Informatik II, RWTH Aachen, 52056 Aachen, Germany
Tel: (+49/0)241/80-21212; Fax: (+49/0)241/8888-217
URL: http://www-i2.informatik.rwth-aachen.de/~chitil/