Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
"unsetopt multifuncdef" breaks tab completion
- X-seq: zsh-users 20836
- From: Kurtis Rader <krader@xxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: "unsetopt multifuncdef" breaks tab completion
- Date: Tue, 27 Oct 2015 18:46:52 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skepticism_us.20150623.gappssmtp.com; s=20150623; h=mime-version:date:message-id:subject:from:to:content-type; bh=YUzMG2yMwf63yJcFEnwJQ8a+oQb+53kuDom3/eCP9Kk=; b=UTfy5JIBrOlNzGDqBXbbpo0dI8ESphYsIqm7vvrQYKXwQrx6hrdui2FgvYSWAY91yZ WQ7M622RoAGOdI2gSxC/v2XE+7we/C3HTyzAbebAUDK05yWiRdXS5Go20yrRkeGsvIol IPEvrn+ZTBT/D9NDE6/C4qxRFeeuFpGg9sZ+ArQQqSO3ncT8b4mF7yb/BX/LL4RHY3kw tNkx3CN6W9FYDw3+V3oQwwozjgMBCtgc84/Zo0ZuNAUqkXjAd1j6VkS+CV62RdULby/4 fysJDHJlZY1cEdy+2wiEN37AyQMMW5Dt88FrNFAehko3Y8fzHUbJ3AjaT88TuOFemSaj hUOw==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author