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

brace in alias name and compsys



Given this:

    % alias ztrace{='() { setopt localoptions xtrace; '

I can do this:

    % ztrace{ [[ a == 43 ]] } 
    +(anon):0> [[ a == 43 ]]
    %

However, tab-completing 'ztrace{' yields 'ztrace\{'.  Hitting return on
a line with the backslash in it yields a:

    zsh: command not found: ztrace{

and a 127 exit status.

Working from "zsh -f", initially tab-completion yields "ztrace{" without
the backslash and everything works fine, but all it takes to get the
broken completion behaviour back is:

    % autoload compinit ; compinit

So this isn't anything in my grotesquery of a configuration and appears
to be straight from compsys.

Is there anything I can tune to change the completion behaviour to not
insert the extraneous backslash?

Thanks,
-Phil



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