Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Accidental function definition - bug or feature?
- X-seq: zsh-users 20835
- From: Clint Hepner <clint.hepner@xxxxxxxxx>
- To: "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- Subject: Re: Accidental function definition - bug or feature?
- Date: Tue, 27 Oct 2015 12:40:17 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-transfer-encoding:content-type:from:mime-version:date :message-id:subject:in-reply-to:references:to; bh=cngM9KpTMflK5248RQUZdbIxMoJzPg1m4uRJ1b3jT/8=; b=Qcok5PJjKwMyiNNuDougxZutzojDWY5VRwNwYOo7UX0+gdB0GNeIQzNkJPpsQTBEhY qf5NCXyHY3ftn//aPzQVAIQBXPUHMBAybVqvvNY2ykkEJLs5uXv8QYHV5dVDfNUVsWGE nS5K+VA3W/YAZlA4q0Y1WOoHn7woJ1fd+J/ZoRfaBUk1s3vqaVqK7MDMXwAhAaldORXc BTxJWpJoQhz9TL+OYwJ1Ril6RJfN47jgAxm22+BNe/bXrXEqEl7dhx4mdh6Tg+vPOf57 v/F+80OaQFp4C7A3yzwAVPK11+OgzWMrW0p4PZjqRVzbc++u1cHlWLIQh5zEBLPRJ41r 553w==
- In-reply-to: <3854791445530294@web16o.yandex.ru>
- 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
- References: <pan.2015.10.22.12.30.22@googlemail.com> <5628E8D7.8080505@gmx.com> <3854791445530294@web16o.yandex.ru>
> On Oct 22, 2015, at 12:11 PM, ZyX <kp-pav@xxxxxxxxx> wrote:
>
> 22.10.2015, 16:48, "Eric Cook" <llua@xxxxxxx>:
>>> On 10/22/2015 08:30 AM, Holger Hoffstätte wrote:
>>>
>>> So..bug or feature?
>>>
>>> thanks,
>>> Holger
>>
>> defining multiple functions at once is a feature
>>
>> mv cp() {
>> $0 -v "$@"
>> }
>>
>> or defining multiple TRAP functions to do the same thing are usual uses for it.
>
> Can be disabled with
>
> unsetopt multifuncdef
You can also undefine functions as an immediate fix:
unfunction git add foo
Messages sorted by:
Reverse Date,
Date,
Thread,
Author