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:
> I'm wondering what the second argument to 'executeFile' is. It's not
> clear from the documentation.
> 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</varname; the argument list passed to function>executeFile</function therefore begins with varname>arg</varname
More information about the Libraries