yi- The Haskell-Scriptable Editor




popen :: FilePath -> [String] -> Maybe String -> IO (String, String, ExitCode)Source

A Posix.popen compatibility mapping. Based on PosixCompat, originally written by Derek Elkins for lambdabot TODO: this will probably be called readProcess in the new process package (2.0)

runProgCommand :: String -> [String] -> IO (String, String, ExitCode)Source

Run a command. This looks up a program name in $PATH, but then calls it directly with the argument.

shellFileName :: IO StringSource

Run a command using the system shell, returning stdout, stderr and exit code