Basically I want to spawn a process changing its working directory.
My idea was to spawn a process and set the PWD enviroment variable.
There’s a way to obtain something like that?
(virtually I would like to change any of the environment variables for flexibility)
Just bind the
default-directoryvariable before spawning your process. Example:I ran this from my
*scratch*buffer and the stringworking dir is /tmpwas added to the buffer.