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

Gwern Branwen gwern0 at gmail.com
Sun Sep 21 01:34:19 EDT 2008


On 2008.09.21 00:32:06 -0400, "Brandon S. Allbery KF8NH" <allbery at ece.cmu.edu> scribbled 4.7K characters:
>    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

Oh, d'oh! I knew that... I shall amend-record that forthwith.

--
gwern
Flintlock Hamas RIT Abdurahmon BECCA EG
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://www.haskell.org/pipermail/xmonad/attachments/20080921/01e57e31/attachment.bin


More information about the xmonad mailing list