[Haskell-cafe] System.Process

Jonathan Cast jonathanccast at fastmail.fm
Tue Sep 30 12:30:58 EDT 2008


On Tue, 2008-09-30 at 18:33 +0200, Ketil Malde wrote:
> David Roundy <droundy at darcs.net> writes:
> 
> > Actually, it's no problem having any of those characters in your
> > arguments,
> 
> My point is that using 'words' on the argument sting to 'runProcess' and
> expecting the same result as 'runCommand' implies making those assumptions::
> 
>   Prelude System.Process> let args = "_* foo \"bar    rab\" $$"
> 
>   Prelude System.Process> runProcess "echo" (words args) Nothing Nothing Nothing Nothing Nothing 
>   _* foo "bar rab" $$
> 
>   Prelude System.Process> runCommand ("echo "++args)
>   _darcs foo bar    rab 2121

This behavior is Windows-specific; I get the the same result in both
cases on Linux.

jcc




More information about the Haskell-Cafe mailing list