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

Re: ZSH_XTRACE_FILE (instead of ZSH_XTRACEFD)



On Wed, Mar 18, 2026 at 4:09 PM Charles Blake <charlechaud@xxxxxxxxx> wrote:
>
> I don't think the shell shock analogy is accurate.  A valid use
> case is `PS4=whatnot ZSH_XTRACE_FILE=/tmp/mylog zsh -x foo.zsh`
> or similar.  The Src/init.c does a getsparam to detect the value
> being something and then calls the setter through the usual
> setsparam -> assignsparam chain for the effect of changing the
> destination FILE* at shell start-up.  Maybe that could use a
> comment.

Exported functions also had valid usecases. Just so happens that
people can be quite clever when designing attacks.




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