Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#537596: regression: parse error near `()' in function definition
- X-seq: zsh-workers 27171
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Bug#537596: regression: parse error near `()' in function definition
- Date: Sun, 19 Jul 2009 23:20:41 +0000
- Cc: martin f krafft <madduck@xxxxxxxxxx>, 537596@xxxxxxxxxxxxxxx
- In-reply-to: <20090719171651.GA7217@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-workers@xxxxxxxxxx, martin f krafft <madduck@xxxxxxxxxx>, 537596@xxxxxxxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20090719171651.GA7217@xxxxxxxxxxxxxxxxxxxxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author