From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17723 invoked by alias); 2 Apr 2015 22:40:30 -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: 20072 Received: (qmail 14392 invoked from network); 2 Apr 2015 22:40:28 -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.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=dQWw37ZXykLgL6SXru3f8gj6dVuFyt1LSfPZKN7ovQA=; b=FdY7PIYL6V0H4D58KkksyS1nlVyQn5ABy0ZTgcKXd7GJmkeOE5bv1SDHqz7PPM1Z1I d0y5ydxtpmNpE6BSQQljfMH9JZUxjJ6UtiBXuO8e0IlRxKRZCDu+cgOVNs1vuCPeCnoh stRBKF1heVFdWn7mhl4ImAcYlKvF7c6s9vEbfzWsr9xP2H9u40xAib08W1QVJxOMEx6n 6VxeFqrA49+HhL7k50V/dzR3fIlgjpOj92I+2N3OD8Zb6i9pOqb2jxY4fNO0MBWqSGWG LpnU+nQ7JuC3uatVlWPLj5ZiCeZz9+S2KtoIE1uAJkNjEsw1CM/FYRbNvX1pfCo4LkBM 2NKw== X-Gm-Message-State: ALoCoQk079LKgczG/yZYnMrqqvpruwazphsfQbOLD4rBcCaeWP9IZGR28L3ZAgv4GGnYQuKoeynG MIME-Version: 1.0 X-Received: by 10.152.43.43 with SMTP id t11mr7400617lal.74.1428014422931; Thu, 02 Apr 2015 15:40:22 -0700 (PDT) In-Reply-To: <81DADC6E-8DFD-4FB4-9E5D-F3F4CF1EDC07@yost.com> References: <81DADC6E-8DFD-4FB4-9E5D-F3F4CF1EDC07@yost.com> Date: Thu, 2 Apr 2015 15:40:22 -0700 Message-ID: Subject: Re: accept-line question From: Bart Schaefer To: Zsh Users Content-Type: text/plain; charset=UTF-8 On Thu, Apr 2, 2015 at 2:50 PM, Dave Yost wrote: > That works. > > I do want the executed command to be inserted into history. > > I searched the manual in vain for a way to do that. Any chance you could > illuminate further? Try this: --- 8< --- execute-now() { zle -I print -S "$BUFFER" eval "$BUFFER" BUFFER= zle -R } --- 8< --- Remaining glitches will be that $? / $pipestatus won't be correct when redrawing the prompt or executing a subsequent command. I can't immediately think of a workaround.