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

Re: Exec-ing aliases



> I have found a thing that works in zsh-2.6beta13, but does not work in
> 3.0.0 (doubtless due to exec changes):
> 
> $ alias a='echo something'
> $ exec a
> 
> In 2.6b13 it would echo something and exit. In 3.0.0 (and presumingly
> in later betas) it just says "a: command not found".

That's because exec is a builtin now.  Use alias exec='exec ' to get back
the old behaviour.

Zoltan



Messages sorted by: Reverse Date, Date, Thread, Author