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

Patch for the previous bug



This patch fixes the problem I reported earlier. If it's the desired
way to do it or not, I don't know. :-)

*** builtin.c   Fri Jun  5 17:48:52 1998
--- builtin.c~  Sun May 31 03:26:12 1998
***************
*** 1587,1592 ****
            if (PM_TYPE(pm->flags) != PM_ARRAY) {
                if (pm->flags & PM_EXPORTED) {
!                 if (!pm->env && (asg->value || getsparam(asg->name)))
!                   pm->env = addenv(asg->name, (asg->value) ? asg->value : getsparam(asg->name));
                } else if (pm->env) {
                    delenv(pm->env);
--- 1587,1592 ----
            if (PM_TYPE(pm->flags) != PM_ARRAY) {
                if (pm->flags & PM_EXPORTED) {
!                   if (!pm->env)
!                       pm->env = addenv(asg->name, (asg->value) ? asg->value : getsparam(asg->name));
                } else if (pm->env) {
                    delenv(pm->env);

-- 
David Hedbor



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