Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#537596: regression: parse error near `()' in function definition



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