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

Re: ZSH_SCRIPT



On Mar 3,  2:36pm, Greg Klanderman wrote:
}
} OK how do you like this?

Sorry to seem mercurial, but I don't think there's any real reason that
all those set?param() calls need to be inside createparamtable().  It
could just as easily be [note precedent exists]

diff --git a/Src/init.c b/Src/init.c
index 4097327..5bad342 100644
--- a/Src/init.c
+++ b/Src/init.c
@@ -1089,6 +1089,8 @@ setupvals(char *cmd)
 
     if (cmd)
 	setsparam("ZSH_EXECUTION_STRING", ztrdup(cmd));
+    if (runscript)
+	setsparam("ZSH_SCRIPT", ztrdup(runscript));
 }
 
 /*

-- 
Barton E. Schaefer



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