[Haskell-cafe] Trouble with readProcess

2011-08-11 Thread Charles-Pierre Astolfi
Hi -cafe, I'm using readProcess and I don't know how to handle this issue: readProcess cmd [opt1,opt2] seems to execute the following: $ cmd opt1 opt2 That is usually fine, but I'm using an external program that doesn't understand the quotes, so I need to execute instead: $ cmd opt1 opt2 How

Re: [Haskell-cafe] Trouble with readProcess

2011-08-11 Thread Donn Cave
Quoth Charles-Pierre Astolfi c...@crans.org, readProcess cmd [opt1,opt2] seems to execute the following: $ cmd opt1 opt2 That is usually fine, but I'm using an external program that doesn't understand the quotes, so I need to execute instead: $ cmd opt1 opt2 How should I do that? I think

Re: [Haskell-cafe] Trouble with readProcess

2011-08-11 Thread Christian Maeder
Am 11.08.2011 16:45, schrieb Charles-Pierre Astolfi: Hi -cafe, I'm using readProcess and I don't know how to handle this issue: readProcess cmd [opt1,opt2] seems to execute the following: are you sure that your argument strings do not contain the quotes, possibly by calling show on

Re: [Haskell-cafe] Trouble with readProcess

2011-08-11 Thread Charles-Pierre Astolfi
I've found my mistake: I was calling readProcess cmd [-p -t] instead of readProcess cmd [-p,-t] Not sure what are the semantics of quotation in this case, though. And I'm pretty sure my analysis is wrong because of that :) -- Cp On Thu, Aug 11, 2011 at 16:05, Donn Cave d...@avvanta.com wrote:

Re: [Haskell-cafe] Trouble with readProcess

2011-08-11 Thread Donn Cave
Quoth Charles-Pierre Astolfi c...@crans.org, I've found my mistake: I was calling readProcess cmd [-p -t] instead of readProcess cmd [-p,-t] That would do it. Not sure what are the semantics of quotation in this case, though. And I'm pretty sure my analysis is wrong because of that :) The

Re: [Haskell-cafe] Trouble with readProcess

2011-08-11 Thread Brandon Allbery
On Thu, Aug 11, 2011 at 11:29, Charles-Pierre Astolfi c...@crans.org wrote: I've found my mistake: I was calling readProcess cmd [-p -t] instead of readProcess cmd [-p,-t] Not sure what are the semantics of quotation in this case, though. And I'm pretty sure my analysis is wrong because of