From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29127 invoked by alias); 13 Jun 2014 06:40:32 -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: 32771 Received: (qmail 10237 invoked from network); 13 Jun 2014 06:40:17 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <140612234011.ZM4768@torch.brasslantern.com> Date: Thu, 12 Jun 2014 23:40:11 -0700 In-reply-to: <5804CF24-1E69-4FD3-832C-4B642B010F86@yost.com> Comments: In reply to Dave Yost "shell script that replaces the command line" (Jun 12, 4:07pm) References: <5804CF24-1E69-4FD3-832C-4B642B010F86@yost.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Dave Yost , zsh-workers@zsh.org Subject: Re: shell script that replaces the command line MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Jun 12, 4:07pm, Dave Yost wrote: } Subject: shell script that replaces the command line } } Can a shell function replace the command line contents? I know a } widget can do it, but I can't see a way for a shell function to do } that. The "print -z ..." command loads the buffer stack, which is then popped into the editor buffer at the next prompt (e.g., after the calling function/script exits).