[xmonad] darcs patch: XMonad.Core: make spawn smarter

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Sun Sep 21 00:32:06 EDT 2008

On 2008 Sep 21, at 0:24, gwern0 at 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 at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/xmonad/attachments/20080921/c063c979/attachment.htm

More information about the xmonad mailing list