From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21238 invoked by alias); 30 Jul 2010 12:10:54 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15210 Received: (qmail 5582 invoked from network); 30 Jul 2010 12:10:51 -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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.215.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=eGIxcZgvJ3JIWdbxTYxC6ilz3ulHsk9dw3nM8t6wAXg=; b=KHWC6CRF4PdtmeeQHABfA6Z6efdsbugML9pVHq6Hejl5ArCyTTKv/Gn4CSa3U5CipR LnoAXTvuE93+/iB3HH8jX8tTKxeByZTp+cdMyCILVqIQtSl/hY3B2i2+k8odKC27ecR9 hn2JVFNOlab9wxzBO9uk7WcbOog6z61R6/yig= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=eNsCEESJGkorEdWSYTmrMPP/b95DA+5veCOuT59sud0wzUY1H5qrZhsKyURgPzHshZ MFnUEN4xoD5jNyZiMMlIsyTGkrb8HKFuA8Zv4NLv8gsPoS6acZ4JR20UFiDw9ELsMc5o 6dZ/YHRNZRIhhUkhLmEGt5ICfdJ5Qlxan5X6E= MIME-Version: 1.0 In-Reply-To: <20100730114427.GA7398@trustfood.org> References: <20100730114427.GA7398@trustfood.org> From: =?ISO-8859-1?Q?J=E9r=E9mie_Roquet?= Date: Fri, 30 Jul 2010 14:04:08 +0200 Message-ID: Subject: Re: restarting application when it ends To: Zsh Users Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello, 2010/7/30 Eric Smith : > When my (asterisk) application stops, I loose the CLI > and fall back into zsh. =A0How do I configure the shell > to re-execute the last command run or explicitly > to refire a specific command? Not sure I understood the problem, but isn't an infinite loop what you are looking for ? for ((;;)) asterisk Of if you want to do it manually : !! # if it's the last command !asterisk # otherwise !N # where N is the position in history Best regards, --=20 J=E9r=E9mie