zsh-users
 help / color / mirror / code / Atom feed
From: ZyX <kp-pav@yandex.ru>
To: Eric Cook <llua@gmx.com>, "zsh-users@zsh.org" <zsh-users@zsh.org>
Subject: Re: Accidental function definition - bug or feature?
Date: Thu, 22 Oct 2015 19:11:34 +0300	[thread overview]
Message-ID: <3854791445530294@web16o.yandex.ru> (raw)
In-Reply-To: <5628E8D7.8080505@gmx.com>

22.10.2015, 16:48, "Eric Cook" <llua@gmx.com>:
> 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


  reply	other threads:[~2015-10-22 16:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-22 12:30 Holger Hoffstätte
2015-10-22 13:47 ` Eric Cook
2015-10-22 16:11   ` ZyX [this message]
2015-10-27 16:40     ` Clint Hepner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3854791445530294@web16o.yandex.ru \
    --to=kp-pav@yandex.ru \
    --cc=llua@gmx.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).