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

Re: Source mangling in $functions_source and typeset -f



On Mon, Nov 29, 2021 at 8:00 AM Peter Stephenson
<p.w.stephenson@xxxxxxxxxxxx> wrote:
>
> > On 27 November 2021 at 17:47 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> >
> > The parse tree only tracks the line numbers of executable code, so as
> > to be able to update the LINENO variable and print line numbers in
> > debug traces and prompts.
>
> Actually, the original line number is remembered, and can be output
> using a prompt

That's what I thought I said ...

> I don't think there's any way of getting this information without actually executing
> the code, though.

... which is exactly the problem here.




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