Subject: Re: ZSH_SCRIPT
From: Bart Schaefer <[email-masked]>
To: [email-masked]
Date: Thu, 3 Mar 2016 12:44:26 -0800
List-Id: Zsh Workers List <zsh-workers.zsh.org>

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