[Haskell-cafe] Picking a shell for runCommand
Donn Cave
donn at drizzle.com
Tue Feb 28 12:38:05 EST 2006
On Tue, 28 Feb 2006, Tom Hawkins wrote:
> It appears runCommand uses /bin/sh by default, but our environment
> needs tcsh. Is there any way to set an alternative shell?
Ideally, it would be better to fix your environment, but something
like this should work if you can't do that -
runSh cmd = runProcess "/bin/tcsh" ["-c", cmd] Nothing Nothing
Nothing Nothing Nothing
The 2nd parameter is argv with argv[0] gratuitously removed.
Donn Cave, donn at drizzle.com
More information about the Haskell-Cafe
mailing list