From 54d95aa58281a29e346b27b67f5e345b4d5c7422 Mon Sep 17 00:00:00 2001 From: phanes Date: Sat, 10 Feb 2024 08:43:37 -0500 Subject: [PATCH] fixing interpolation/environment var lifecycle issue --- src/lcpex/liblcpex.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lcpex/liblcpex.cpp b/src/lcpex/liblcpex.cpp index 57a8b36..f494a6f 100644 --- a/src/lcpex/liblcpex.cpp +++ b/src/lcpex/liblcpex.cpp @@ -181,7 +181,8 @@ int execute( // before we fork the process, so that the child process will inherit the environment // from the parent process 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