From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8662 invoked by alias); 14 Jun 2014 09:46:10 -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: 32778 Received: (qmail 24224 invoked from network); 14 Jun 2014 09:45:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=AG2uhpc2hRK0MKbh6EhI+rBIWE93vGOZDi23fBl6ULY=; b=xn2LHWIjQbF1E7tpd7bf05YOPAH1OdTimJ37iAj4aGI6E4O2nxNRS41Okq2xNSq1zS zt0UrKOITxC49j9yBFzYCENNTdclEw8DeVTvYI1BAQy25WkBn532LI9m4sxVaFe9CoCu Eym+lp02ANE0e9WJ9GQK063DSdFuosEeMleb0TxZtZh5V+ESTmdXgqiA33SSojx28/57 EO6Y/rXF81ra3ys+Z1CKgOQbOwJXldW7G1DeyYmviYGm8sYDpEeAj44JTJRHoYYUvdnc SX/+zs/LZCxxJknkqCLBR2tTqU1IZ3lwfGG7KhDowXNfzbWz6sX56DhFLus5AX0AuuGD CIkw== MIME-Version: 1.0 X-Received: by 10.140.94.179 with SMTP id g48mr9848145qge.58.1402739152771; Sat, 14 Jun 2014 02:45:52 -0700 (PDT) In-Reply-To: <8E27557A-CD91-4AE6-81F6-B4D8E1F6F513@yost.com> References: <5804CF24-1E69-4FD3-832C-4B642B010F86@yost.com> <140612234011.ZM4768@torch.brasslantern.com> <8E27557A-CD91-4AE6-81F6-B4D8E1F6F513@yost.com> Date: Sat, 14 Jun 2014 11:45:52 +0200 Message-ID: Subject: Re: shell script that replaces the command line From: Mikael Magnusson To: Dave Yost Cc: Bart Schaefer , zsh workers Content-Type: text/plain; charset=UTF-8 On 13 June 2014 23:34, Dave Yost wrote: > Thanks. > > This is OK, > 0 Fri 0:08:54 DaveBook yost /Users/yost > 215 Z% print -z echo foo > 0 Fri 0:09:33 DaveBook yost /Users/yost > 216 Z% echo foo > > but there must be a way to replace the current command line rather than setting the contents of the next one, yes? You can most likely use zle -F to do what you want, but it would be somewhat messy. -- Mikael Magnusson