From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27716 invoked by alias); 24 Apr 2014 20:35:21 -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: 32577 Received: (qmail 23671 invoked from network); 24 Apr 2014 20:34:45 -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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, T_DKIM_INVALID autolearn=no version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=nDdfvcX5rbB1uQZpY3+XkNal8LWndvpJ4FnouTxmKP4=; b=jOKRlU38bt3sNthKG7W3E4klFF7gH2fwVkutAD8kb1YmQEHeNHZmMgw59NwYRhAT3Z La5eSiZuhq/O44tq2o6YH+rV60JYF46/CPMGGVSdqquxTxEIw9dCOqwCOJ5M8tala56n Qd6sTG/bajvu8/YzAdJ5gEf3sOLhi5ST1Tx+P+zE3lUEKNTzk+WMNN3rnWEBTT3hKsWS 1w1+YZHuUJFiGb5VGpHENOhZ6E8tcP4kJsD5SPwfMsT7L4drzdEHWdYWRg9ed3ETnvqJ WAG0k/73V015/dUzrdN4E60aoShrunIPfEGE/mC5RtLwvsBvag6dfwVHMho2w5z0gh+E mxsg== X-Received: by 10.66.148.197 with SMTP id tu5mr2614254pab.108.1398371680404; Thu, 24 Apr 2014 13:34:40 -0700 (PDT) Sender: Dave Yost X-Google-Original-From: Dave Yost Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.0\)) Subject: zsh script to run prepared shell commands for a demo From: Dave Yost In-Reply-To: Date: Thu, 24 Apr 2014 13:34:29 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.1878) With the kind help of Bart Schaefer and Frank Terbeck, I think this is = pretty much done. See = http://yost.com/computers/demo-shell-commands/demo-shell-commands.zsh On Fri 2014-04-18, at 12:49 PM, Dave Yost wrote: > Is there a builtin function that replaces the command line with the = function's output? The completion mechanism must use such a function, so = there has to be something like that. >=20 > I want to use that function to build a function I can use to run a = demo consisting of a sequence of commands. > * Make an array of strings > * For each step of the demo > * Type a command or a keyboard shortcut that grabs the next string = from the array and places it on the command line > * Hit Enter to execute the command >=20 > Thanks