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

From: Richard Philips <richard.philips.att.gmail.com>
Date: Wed, 21 May 2014 14:23:55 +0200

Hi Mitchell,

I would like to propose an alternative way to call spawn.

The first argument (argv) is a string describing the commandline and
arguments.

This is ok, but it is shell dependent and is quite difficult to work with
(MS-Windows has its own problems)

I propose:

- if type(argv) == 'string' --> existing behaviour

- if type(argv) == 'table' -->
      first argument is name of the executable
      second argument: first parameter to the executable
      ...

What do you think?
(The idea originated in Python's subprocess module)

Richard

-- 
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 Wed 21 May 2014 - 08:23:55 EDT

This archive was generated by hypermail 2.2.0 : Thu 22 May 2014 - 06:38:07 EDT