Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Exec-ing aliases
- X-seq: zsh-workers 2114
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
- To: hniksic@xxxxxxx (Hrvoje Niksic)
- Subject: Re: Exec-ing aliases
- Date: Mon, 9 Sep 1996 14:36:26 +0200 (MET DST)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <kig91ajsx7d.fsf@xxxxxxxxxxxxx> from Hrvoje Niksic at "Sep 9, 96 02:13:26 pm"
- Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary
- Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368
> 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