Subject: Re: ZSH_SCRIPT
From: Bart Schaefer <[email-masked]>
To: [email-masked]
Date: Tue, 1 Mar 2016 10:36:30 -0800
List-Id: Zsh Workers List <zsh-workers.zsh.org>

On Mar 1, 11:36am, Greg Klanderman wrote:
}
}      parseargs(argv, &runscript, &cmd);
} +    zsh_script = runscript;

I think that should probably be ztrdup(runscript) the same way argzero
and posixzero are handled, but maybe this next bit makes it unnecessary.

}      setsparam("ZSH_NAME", ztrdup_metafy(zsh_name));
} -    setsparam("ZSH_SCRIPT", ztrdup(posixzero));
} +    setsparam("ZSH_ARGZERO", ztrdup(posixzero));
} +    setsparam("ZSH_SCRIPT", ztrdup(zsh_script));

Those should probably be ztrdup_metafy() same as ZSH_NAME.