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

Re: [BUG] Anonymous functions cause funcfiletrace to produce function-relative line numbers



On Fri, Dec 15, 2017 at 10:45 AM, dana <dana@xxxxxxx> wrote:
>
> tried it with the functions in separate files, and they look correct there
> too... unless you use ksh-style definitions.

Does the same thing happen whenever a function is defined like this --

>   % < puts
>   #
>   puts() {
>     #
>     #
>     panic
>   }

--  in an autoload file (zsh included)?  That is, if the function is
parsed as part of a larger function, so it isn't defined until the
surrounding function is executed, then I'm betting the line numbers
from the original file are lost.



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