I am working on a patch to extend launch (a clisp routine to launch
sub-processes) so that the environment of the child process can
be controlled from lisp. I think the unix side of the work is done.
However I know nothing about windows. If someone could look at this
and suggest how to make this work on windows that would be great.
I have tested the environment parameters and it works. I also tested
reading from the output stream of the launched command, that works.
I don't know enough about lisp to test the input stream.
Sam had these earlier comments:
>> 1. please read http://clisp.podval.org/impnotes/add-fun.html - you
>> also need to modify subr.d and subrkw.d
>> 2. what about win32?
>> 3. when :environment is missing or :default, you should use execve
>> instead of execvp as it is done now to inherit the environment.
>> 4. switching the existing functions to use launch will be done
>> only after launch is made public and all the other
>> functions are officially deprecated.
>> 5. shell is NOT going away, ever, because it is immensely
>> useful for things like (shell "cat foo | cut ... | awk | sed | perl ")
>> which would be hard to implement in lisp.
>> Thanks for your work.
>> I will be waiting for the final version of the patch.
For 1 - This patch has changes to subr.d subrkw.d
For 2 - I am not able to do the win32 work, I need help.
For 3 - Done.
For 4 - Done - I have removed my changes to switch to the
new launch command.
For 5 - Done - shell is untouched.