zsh-users
 help / color / mirror / code / Atom feed
* "unsetopt multifuncdef" breaks tab completion
@ 2015-10-28  1:46 Kurtis Rader
  2015-10-28  2:15 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Kurtis Rader @ 2015-10-28  1:46 UTC (permalink / raw)
  To: Zsh Users

[-- Attachment #1: Type: text/plain, Size: 1214 bytes --]

There was a recent thread about how someone executed

$ git add foo().bar

and was surprised to end up with three functions named "git", "add", and
"foo". So I decided to add

unsetopt multifuncdef

to my ~/.zshrc as one person who replied suggested to avoid that surprising
behavior. Imagine my surprise when a few days later I rebooted my computer
and found that any attempt to perform tab-completion resulted in this error:

_main_complete:143: parse error near `()'

I'm sorry but that's the final straw to break this camel's back. I've
either personally experienced, or read about others experiencing,  too many
problems of that nature. I'm going to switch to a shell whose behavior is
not impossible to understand or predict.

http://www.skepticism.us/2015/10/its-time-to-replace-zsh-with-a-saner-shell-because-unsetopt-multifuncdef-breaks-tab-completion/

P.S., Yes, I understand I could simply file a bug report to make the
standard completion code robust in the face of a user unsetting that
option. The point is that this is not an isolated incident. It reflects a
fundamental problem with zsh trying to be all things to all people.

-- 
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank

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

* Re: "unsetopt multifuncdef" breaks tab completion
  2015-10-28  1:46 "unsetopt multifuncdef" breaks tab completion Kurtis Rader
@ 2015-10-28  2:15 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2015-10-28  2:15 UTC (permalink / raw)
  To: Zsh Users

On Oct 27,  6:46pm, Kurtis Rader wrote:
}
} unsetopt multifuncdef
} 
} _main_complete:143: parse error near `()'

Of course that bug was fixed a while ago (and introduced only a little
while before that).  It occurs in release 5.0.8 only.

Good luck, wherever you are.


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

end of thread, other threads:[~2015-10-28  2:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-28  1:46 "unsetopt multifuncdef" breaks tab completion Kurtis Rader
2015-10-28  2:15 ` 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).