Subject: Re: Glitch with "eval" and "autoload"
From: Peter Stephenson <[email-masked]>
To: [email-masked]
Date: Sun, 24 Jan 2016 15:22:35 +0000
List-Id: Zsh Workers List <zsh-workers.zsh.org>

On Sat, 23 Jan 2016 10:03:11 -0800
Bart Schaefer <[email-masked]> wrote:
> What's the right way to get the actual function name?  Climbing up the
> fstack looking for strcmp(fsptr->name, "(eval)") != 0 seems pretty ugly,
> but the "ineval" global isn't sufficient for e.g. "eval eval autoload -X".

You shouldn't need to check the name, rather look for (fstpr->tp ==
FS_FUNC).  That ought to be fairly robust.

pws