Re: [code] [textadept] spawn: working directory

From: Mitchell <m.att.foicica.com>
Date: Wed, 7 May 2014 23:58:47 -0400 (EDT)

Richard,

On Wed, 7 May 2014, Richard Philips wrote:

> Hi Mitchell,
>
>
> just to be sure:
>
> spawn(argv, working_dir)
>
> *does not change* the working_dir in the new thread but only launches the
> new process in working_dir?
>
> (changing the working_dir in a thread, changes the working_dir for the
> process)

That is a good question. Textadept calls 'CreateProcessW()' on Windows and
'g_spawn_async_with_pipes()` on Linux and Mac OSX. I don't see anywhere in
their respective documentation that they change the parent's working
directory.

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 Wed 07 May 2014 - 23:58:47 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 May 2014 - 06:26:27 EDT