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

Re: wrapping "local" (was: Re: [PATCH 10/18] Add helper script to check state of _tmux completion)



On Mon, 10 Aug 2015 17:20:59 +0200
Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx> wrote:
> Could it be, that I can't write a wrapper around "local" anymore?

You need to disable the "local" reserved word, which takes precedence
over functions (this makes sense as it's parsed specially and
differently).

disable -r local

That means you can't use array assignments after the local,
but that's an obvious restriction of the function interface.

pws



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