fixing interpolation/environment var lifecycle issue

This commit is contained in:
phanes
2024-02-10 08:43:37 -05:00
parent 698ba9373c
commit 54d95aa582

View File

@@ -181,7 +181,8 @@ int execute(
// before we fork the process, so that the child process will inherit the environment // before we fork the process, so that the child process will inherit the environment
// from the parent process // from the parent process
if ( environment_supplied ) { if ( environment_supplied ) {
clearenv(); // this breaks reuse of env variables in between executions
//clearenv();
} }
// create the pipes for the child process to write and read from using its stdin/stdout/stderr // create the pipes for the child process to write and read from using its stdin/stdout/stderr