On Wed, Jan 31, 2007 at 23:34:42 +0100, Benedikt Schmidt wrote:
> System.Cmd.system does that too, but instead of returning a process handle,
> it waits for the process to finish and returns the exit code. So using
> system is just a little nicer for this case since we don't have to use
> waitForProcess.

I see, thanks.

The next question is why put DARCS_ARGUMENT into the environment at all
when we can just pass the whole command, arguments and all to the shell?

In other words, why is
  system $ cmd++" \"$"++var++"\""
preferable to
  system $ cmd++" "++arg
?

I'm not sure I understood the comment about not wanting the shell to
interpret the argument in any way.

-- 
Eric Kow                     http://www.loria.fr/~kow
PGP Key ID: 08AC04F9         Merci de corriger mon français.

Attachment: pgpQaPESIfjY4.pgp
Description: PGP signature

_______________________________________________
darcs-devel mailing list
[email protected]
http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel

Reply via email to