From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7056 invoked by alias); 27 Oct 2015 16:40:23 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20835 Received: (qmail 11540 invoked from network); 27 Oct 2015 16:40:22 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 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== X-Received: by 10.129.106.137 with SMTP id f131mr11721289ywc.143.1445964018862; Tue, 27 Oct 2015 09:40:18 -0700 (PDT) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 From: Clint Hepner Mime-Version: 1.0 (1.0) Date: Tue, 27 Oct 2015 12:40:17 -0400 Message-Id: Subject: Re: Accidental function definition - bug or feature? In-Reply-To: <3854791445530294@web16o.yandex.ru> References: <5628E8D7.8080505@gmx.com> <3854791445530294@web16o.yandex.ru> To: "zsh-users@zsh.org" X-Mailer: iPhone Mail (13A452) > On Oct 22, 2015, at 12:11 PM, ZyX wrote: >=20 > 22.10.2015, 16:48, "Eric Cook" : >>> On 10/22/2015 08:30 AM, Holger Hoffst=C3=A4tte wrote: >>>=20 >>> So..bug or feature? >>>=20 >>> thanks, >>> Holger >>=20 >> defining multiple functions at once is a feature >>=20 >> mv cp() { >> $0 -v "$@" >> } >>=20 >> or defining multiple TRAP functions to do the same thing are usual uses f= or it. >=20 > Can be disabled with >=20 > unsetopt multifuncdef You can also undefine functions as an immediate fix: unfunction git add foo=