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

Re: ZSH_SCRIPT



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.



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