From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27759 invoked from network); 11 Jun 2007 10:35:43 -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 10:35:43 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 46919 invoked from network); 11 Jun 2007 10:35:37 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Jun 2007 10:35:37 -0000 Received: (qmail 28107 invoked by alias); 11 Jun 2007 10:35:33 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23544 Received: (qmail 28095 invoked from network); 11 Jun 2007 10:35:32 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 11 Jun 2007 10:35:32 -0000 Received: (qmail 46718 invoked from network); 11 Jun 2007 10:35:32 -0000 Received: from cluster-d.mailcontrol.com (217.69.20.190) by a.mx.sunsite.dk with SMTP; 11 Jun 2007 10:35:29 -0000 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly51d.srv.mailcontrol.com (MailControl) with ESMTP id l5BAZ6Lu021331 for ; Mon, 11 Jun 2007 11:35:27 +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 11:33:59 +0100 Date: Mon, 11 Jun 2007 11:33:59 +0100 From: Peter Stephenson To: zsh-workers@sunsite.dk Subject: Re: [patch] interactive source Message-ID: <20070611113359.097811d3@news01.csr.com> In-Reply-To: <20070604020217.GA96032@redoubt.spodhuis.org> References: <20070604020217.GA96032@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 10:33:59.0914 (UTC) FILETIME=[05BFFCA0:01C7AC14] X-Scanned-By: MailControl A-07-07-05 (www.mailcontrol.com) on 10.68.0.161 On Sun, 3 Jun 2007 19:02:17 -0700 Phil Pennock wrote: > >8------------------------------ . [-i] file [arg ...] > Reads file as input to rc and executes its contents. > With a -i flag, input is interactive. Thus from within a shell > script, > > . -i /dev/tty > > does the ``right thing''. > ----------------------------8< cut here 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. The option handling needs to be done in the standard way, but that's easy to fix. -- 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