From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26031 invoked from network); 11 Jun 2007 13:34:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.0 (2007-05-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=no version=3.2.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 11 Jun 2007 13:34:57 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 18725 invoked from network); 11 Jun 2007 13:34:50 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Jun 2007 13:34:50 -0000 Received: (qmail 19541 invoked by alias); 11 Jun 2007 13:34:48 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23546 Received: (qmail 19532 invoked from network); 11 Jun 2007 13:34:47 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 11 Jun 2007 13:34:47 -0000 Received: (qmail 18428 invoked from network); 11 Jun 2007 13:34:46 -0000 Received: from cluster-c.mailcontrol.com (168.143.177.190) by a.mx.sunsite.dk with SMTP; 11 Jun 2007 13:34:42 -0000 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly16c.srv.mailcontrol.com (MailControl) with ESMTP id l5BDYCix023920 for ; Mon, 11 Jun 2007 14:34:36 +0100 Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Mon, 11 Jun 2007 14:33:59 +0100 Date: Mon, 11 Jun 2007 14:33:59 +0100 From: Peter Stephenson To: zsh-workers@sunsite.dk Subject: Re: [patch] interactive source Message-ID: <20070611143359.5deac092@news01.csr.com> In-Reply-To: <20070611121019.GA83764@redoubt.spodhuis.org> References: <20070604020217.GA96032@redoubt.spodhuis.org> <20070611113359.097811d3@news01.csr.com> <20070611121019.GA83764@redoubt.spodhuis.org> Organization: CSR X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.8; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 11 Jun 2007 13:33:59.0362 (UTC) FILETIME=[2AB8FA20:01C7AC2D] X-Scanned-By: MailControl A-07-07-05 (www.mailcontrol.com) on 10.67.0.126 On Mon, 11 Jun 2007 05:10:19 -0700 Phil Pennock wrote: > On 2007-06-11 at 11:33 +0100, Peter Stephenson wrote: > > I tried this. While it's potentially useful to allow users to > > execute code like this, it probably needs to use ZLE, which is more > > work. > > Oh pox. I tested that there was prompting, command-history, history > navigation etc but didn't test tab-completion. That ought to be relatively straighforward, along the lines of how vared handles it. What I was referring to was this: % cat test-i print Run some code, then type "^d" . -i /dev/tty print Finished % zsh ./test-i (which is where I assume people are likely to want to embed some interactive stuff). Here, there appears to be no zle support at all. It works OK if I use a shell function in an interactive shell instead of a script. The problem is that a lot of stuff isn't usually set up at all in non-interactive shells. Again, vared handles this OK and should serve as a model. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview