zsh-workers
 help / color / mirror / code / Atom feed
* Exec-ing aliases
@ 1996-09-09 12:13 Hrvoje Niksic
  1996-09-09 12:36 ` Zoltan Hidvegi
  0 siblings, 1 reply; 2+ messages in thread
From: Hrvoje Niksic @ 1996-09-09 12:13 UTC (permalink / raw)
  To: ZSH Workers Mailing List

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".

-- 
hniksic@srce.hr              |  Student of electrical engineering
hniksic@fly.cc.fer.hr        |  University of Zagreb, Croatia
------------------------------------------------------------------
* Q: What is an experienced Emacs user?
* A: A person who wishes that the terminal had pedals.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Exec-ing aliases
  1996-09-09 12:13 Exec-ing aliases Hrvoje Niksic
@ 1996-09-09 12:36 ` Zoltan Hidvegi
  0 siblings, 0 replies; 2+ messages in thread
From: Zoltan Hidvegi @ 1996-09-09 12:36 UTC (permalink / raw)
  To: Hrvoje Niksic; +Cc: zsh-workers

> 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-09-09 12:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-09-09 12:13 Exec-ing aliases Hrvoje Niksic
1996-09-09 12:36 ` Zoltan Hidvegi

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).