System.Posix.Process.executeFile question

Frederik Eaton frederik at a5.repetae.net
Tue Aug 8 18:34:12 EDT 2006


Hi,

I'm wondering what the second argument to 'executeFile' is. It's not
clear from the documentation.

http://www.haskell.org/ghc/docs/latest/html/libraries/unix/System-Posix-Process.html#v%3AexecuteFile

Also, it seems the documentation source is being parsed incorrectly. 
This is what it looks like to me:

executeFile :: FilePath -> Bool -> [String] -> Maybe [(String, String)] -> IO ()
literal>executeFile cmd args env</literal calls one of the function>execv*</function family, depending on whether or not the current PATH is to be searched for the command, and whether or not an environment is provided to supersede the process's current environment. The basename (leading directory names suppressed) of the command is passed to function>execv*</function> as <varname>arg[0]</varname; the argument list passed to function>executeFile</function therefore begins with varname>arg[1]</varname

Thanks!

Frederik

-- 
http://ofb.net/~frederik/


More information about the Libraries mailing list