System.Posix.Process.executeFile question
Clifford Beshers
clifford.beshers at linspire.com
Tue Aug 8 18:56:59 EDT 2006
That's the bit about 'whether or not the current PATH is to be
searched'. True means use the search path.
Frederik Eaton wrote:
> 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
>
>
More information about the Libraries
mailing list