
21 Sep
2008
21 Sep
'08
5:34 a.m.
On 2008.09.21 00:32:06 -0400, "Brandon S. Allbery KF8NH"
On 2008 Sep 21, at 0:24, gwern0@gmail.com wrote:
- -spawn x = doubleFork $ executeFile "/bin/sh" False ["-c", x] Nothing +spawn x = io $ do shell <- getEnv "$SHELL" `catch` (\_ -> return "/bin/sh") + doubleFork $ executeFile shell False ["-c", x] Nothing
As seen by getEnv, it's just "SHELL". This code looks for $SHELL, which most shells other than rc will balk at creating. -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com
Oh, d'oh! I knew that... I shall amend-record that forthwith. -- gwern Flintlock Hamas RIT Abdurahmon BECCA EG