From 795350b07b889f0ad216a41ea080c431e27c1503 Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 2 Feb 2024 20:20:20 +0100 Subject: stack --- src/c_exec.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/c_exec.go b/src/c_exec.go index 4ca6eea..722dfbd 100644 --- a/src/c_exec.go +++ b/src/c_exec.go @@ -43,7 +43,7 @@ * POSSIBILITY OF SUCH DAMAGE. * * hardflip: src/c_exec.go - * Thu Feb 01 16:56:52 2024 + * Fri Feb 02 09:41:42 2024 * Joe * * exec the command at some point @@ -64,6 +64,7 @@ func c_exec_cmd(cmd_fmt, cmd_env []string) { cmd := exec.Command(cmd_fmt[0], cmd_fmt[1:]...) if cmd_env != nil { + cmd.Env = os.Environ() cmd.Env = append(cmd.Env, cmd_env...) } cmd.Stdin = os.Stdin -- cgit v1.2.3