Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#480889: zcompiling messes with alias-in-function expansion
- X-seq: zsh-workers 25005
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Bug#480889: zcompiling messes with alias-in-function expansion
- Date: Mon, 12 May 2008 17:04:00 +0100
- Cc: martin f krafft <madduck@xxxxxxxxxx>, 480889@xxxxxxxxxxxxxxx
- In-reply-to: <20080512145509.GA15757@xxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-workers@xxxxxxxxxx, martin f krafft <madduck@xxxxxxxxxx>, 480889@xxxxxxxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20080512145509.GA15757@xxxxxxxxxxxxxxxxx>
I imagine that this is somehow related to
alias foo='echo bar'; foo
On Mon, May 12, 2008 at 03:55:09PM +0100, martin f krafft wrote:
> % cat <<_eof > foo
> alias foo='echo bar'
> fn() { foo }
> foo
> which foo
> _eof
> % . ./foo
> bar
> foo: aliased to echo bar
> % unalias foo; unfunction fn
> % zcompile foo
> % . ./foo
> ./foo:3: command not found: foo
> foo: aliased to echo bar
>
>
> OUCH!
Messages sorted by:
Reverse Date,
Date,
Thread,
Author