diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2023-12-10 00:34:15 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2023-12-10 00:34:15 -0500 |
commit | 5c87acf3473bbe4f157b667b82bcea885c06b76c (patch) | |
tree | 08f30e4d17ec9cac1b3723a716a31420eea811b4 | |
parent | bcae32faf90f9bea22f363cbf03a97ea1d6f1f00 (diff) | |
download | stasis-5c87acf3473bbe4f157b667b82bcea885c06b76c.tar.gz |
Use "env" program instead of "printenv" shell built-in to read environment
-rw-r--r-- | src/conda.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conda.c b/src/conda.c index 9575c25..6e72a87 100644 --- a/src/conda.c +++ b/src/conda.c @@ -99,7 +99,7 @@ int conda_activate(const char *root, const char *env_name) { // Fully activate conda and record its effect on the runtime environment char command[PATH_MAX]; - snprintf(command, sizeof(command) - 1, "source %s; source %s; conda activate %s &>/dev/null; printenv -0", path_conda, path_mamba, env_name); + snprintf(command, sizeof(command) - 1, "source %s; source %s; conda activate %s &>/dev/null; env -0", path_conda, path_mamba, env_name); int retval = shell2(&proc, command); if (retval) { // it didn't work; drop out for cleanup |