Re: [code] Re: [textadept] spawn(argv, ...

From: Mitchell <m.att.foicica.com>
Date: Fri, 23 May 2014 11:37:12 -0400 (Eastern Daylight Time)

Richard,

On Thu, 22 May 2014, Richard Philips wrote:

> Hello Mitchell,
>
>
>>
>> Forgive me for asking, but why not add your properly quoted arguments to a
>> table and then pass the result of `table.concat()` to `spawn()`?
>>
>>
>>
> [snip]
>
> Parsing arguments is particular difficult on Windows (
> http://stackoverflow.com/questions/4094699/how-does-the-windows-command-interpreter-cmd-exe-parse-scripts),
> as it is NOT cmd.exe which does the job but the parsing is dependent on the
> program itself!
>
>
> So, I hoped that you could immediately call the relevant C spawn functions
> :-)

Thanks for the link. This makes me even more firm on not accepting table
arguments because quoting arguments in one way may work for one program,
but not another.

> I solved the problem in another way (but I pay a - small - price for it, a
> price I hoped to evade :-)

It's unfortunate that such compromises need to be made for cross-platform
applications to function properly "out of the box".

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Fri 23 May 2014 - 11:37:12 EDT

This archive was generated by hypermail 2.2.0 : Sat 24 May 2014 - 06:47:39 EDT