Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [bug] problem with env vars that zsh sets itself



On Fri, 30 Sep 2016 09:55:38 +0100
Stephane Chazelas <stephane.chazelas@xxxxxxxxx> wrote:
> zsh's "export" command doesn't list the environment variables
> that zsh sets itself.

diff --git a/Src/params.c b/Src/params.c
index 8271a8b..e115102 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -4727,6 +4727,7 @@ addenv(Param pm, char *value)
      if (pm->env)
          zsfree(pm->env);
      pm->env = newenv;
+     pm->node.flags |= PM_EXPORTED;
 #else
     /*
      * Under Cygwin we must use putenv() to maintain consistency.

pws



Messages sorted by: Reverse Date, Date, Thread, Author