From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11245 invoked by alias); 21 Aug 2011 22:09:31 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29717 Received: (qmail 4470 invoked from network); 21 Aug 2011 22:09:28 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at alea.gnuu.de designates 83.246.114.63 as permitted sender) X-DKIM: Sendmail DKIM Filter v2.5.2 uucp.gnuu.de 5FBDF488068 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= To: zsh-workers@zsh.org Path: not-for-mail From: =?UTF-8?Q?J=C3=B6rg?= Sommer Newsgroups: local.mailinglist.zsh Subject: auto-exec on last command Date: Sun, 21 Aug 2011 21:33:52 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: alea.gnuu.de 1313962432 9985 192.168.0.5 (21 Aug 2011 21:33:52 GMT) X-Complaints-To: usenet@alea.gnuu.de User-Agent: slrn/pre1.0.0-18 (Linux) Sender: news 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)