zsh-workers
 help / color / mirror / code / Atom feed
From: Clint Adams <schizo@debian.org>
To: zsh-workers@sunsite.dk
Cc: martin f krafft <madduck@debian.org>, 537596@bugs.debian.org
Subject: Re: Bug#537596: regression: parse error near `()' in function definition
Date: Sun, 19 Jul 2009 23:20:41 +0000	[thread overview]
Message-ID: <20090719232041.GA5156@scru.org> (raw)
In-Reply-To: <20090719171651.GA7217@piper.oerlikon.madduck.net>

Does this have anything to do with users/14240?

On Sun, Jul 19, 2009 at 07:16:51PM +0200, martin f krafft wrote:
> A regression introduced by this build:
> 
> This works (I use eval since those functions are defined in a loop[0])
> 
> % eval 'de() { (_de-en $*; _en-de $*) | more }'
> % which de
> de () {
>   (
>     _de-en $*
>     _en-de $*
>   ) | more
> }
> 
> But:
> 
> % eval 'lt() { (_lt-en $*; _en-lt $*) | more }'
> zsh: parse error near `()'
> 
> Alright, so lt is special:
> 
> % which lt
> lt: aliased to ls -lt
> 
> But that does not prevent de from being defined:
> 
> % alias de=foo
> % eval 'de() { (_de-en $*; _en-de $*) | more }'
> % which de
> de: aliased to foo
> 
> [0] http://git.madduck.net/v/etc/zsh.git?a=blob;f=.zsh/zshrc/30_aliases;h=f206c8c8bfeaf777a6f4ebef5ea4b54746376b7e;hb=HEAD#l131


       reply	other threads:[~2009-07-19 23:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20090719171651.GA7217@piper.oerlikon.madduck.net>
2009-07-19 23:20 ` Clint Adams [this message]
2009-07-20  4:18   ` Bart Schaefer
2009-07-20  8:27   ` Peter Stephenson
2009-07-20  8:37     ` Mikael Magnusson
2009-07-20  8:50       ` Peter Stephenson
2009-07-20  9:10         ` Mikael Magnusson
2009-07-20  9:15           ` Peter Stephenson
2009-07-20  8:46     ` martin f krafft

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=20090719232041.GA5156@scru.org \
    --to=schizo@debian.org \
    --cc=537596@bugs.debian.org \
    --cc=madduck@debian.org \
    --cc=zsh-workers@sunsite.dk \
    /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).