Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
auto-exec on last command
- X-seq: zsh-workers 29717
- From: Jörg Sommer <joerg@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: auto-exec on last command
- Date: Sun, 21 Aug 2011 21:33:52 +0000 (UTC)
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=gnuu.de; s=banki; t=1313963339; i=@alea.gnuu.de; bh=5aYTvPYfOMixjhpGSEBG0WOjfPOwwUT5x 7BegBJ77eU=; h=To:From:Subject:Date:Message-ID:Mime-Version: Content-Type:Content-Transfer-Encoding:Sender; b=JedM/9nvhRsPKIk5g Q+hdN27kpSrJe9jZU8fTufnUR0SQw0rCQjirIt9dYx4VxTeFsth0keqt8hKYNIGQ46B 2r5NkXDGZSo15jUDSv1bQFLqyhG2Ds+J6wO5xbbdNzUF553d0GU1IW/DjmIQV5kd5e2 OwiNZqBrDDmz9YgcgixY=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Sender: news <news@xxxxxxxxxxxx>
Hi,
is it possible to advice zsh to replace its process (with exec) with the
process of the last command? I have many processes running they only
spawn the desired program. It would be more efficent to run these
processes with exec to don't keep the intermediat process of the shell.
Something like zsh -c 'setopt execlast; $myprog' or zsh -Xc '$myprog'
that runs the script 'exec $myprog'.
Regards, Jörg.
--
Wer eher stirbt ist länger tot.
(Un B. Kant)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author