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

DEBUG trap and warn_create_global



    f() { setopt local_options warn_create_global; :; }; trap : DEBUG; f

in zsh -f outputs

    f: scalar parameter ZSH_DEBUG_CMD created globally in function f

I would think ZSH_DEBUG_CMD is local to the trap execution. Otherwise
DEBUG traps can "break" warn_create_global clean functions.

- Matthew Martin



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