Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Accidental function definition - bug or feature?
- X-seq: zsh-users 20813
- From: ZyX <kp-pav@xxxxxxxxx>
- To: Eric Cook <llua@xxxxxxx>, "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- Subject: Re: Accidental function definition - bug or feature?
- Date: Thu, 22 Oct 2015 19:11:34 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1445530295; bh=RJ17ZEGBsjRQhZDFeUErROabs9qO8S6gPwqB+iZm6nw=; h=From:To:In-Reply-To:References:Subject:Date; b=De+BpxSQsfPINQ+J4bxl59WZBIYD4WDHZDNFN0XmxDAqhfKH6xa6HUrZ585+96jO1 Oi72xunI+LpSro3trG08YS8Oe4BMxHG6WVEQ+Lpqq85hWHuXiWXOpvMZwxKDuN0J8T Op6DPRuyZu8jKfJ+VTNeN85s+Fpoyup3nX40plcU=
- In-reply-to: <5628E8D7.8080505@gmx.com>
- 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>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author