zsh-users
 help / color / mirror / code / Atom feed
* brace in alias name and compsys
@ 2013-12-15  7:36 Phil Pennock
  2013-12-15 19:52 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Phil Pennock @ 2013-12-15  7:36 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-12-15 19:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-15  7:36 brace in alias name and compsys Phil Pennock
2013-12-15 19:52 ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).