From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8577 invoked from network); 30 Jul 2001 00:59:19 -0000 Received: from unknown (HELO sunsite.dk) (130.225.51.30) by ns1.primenet.com.au with SMTP; 30 Jul 2001 00:59:19 -0000 Received: (qmail 8552 invoked by alias); 30 Jul 2001 00:59:12 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15519 Received: (qmail 8541 invoked from network); 30 Jul 2001 00:59:11 -0000 From: Bart Schaefer Message-Id: <1010730005825.ZM29062@candle.brasslantern.com> Date: Mon, 30 Jul 2001 00:58:25 +0000 In-Reply-To: <20010729215207.6FB6314291@pwstephenson.fsnet.co.uk> Comments: In reply to Peter Stephenson "Re: Calculator function" (Jul 29, 10:52pm) References: <20010729215207.6FB6314291@pwstephenson.fsnet.co.uk> X-Mailer: Z-Mail (5.0.0 30July97) To: Peter Stephenson , zsh-workers@sunsite.auc.dk (Zsh hackers list) Subject: Re: Calculator function MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jul 29, 10:52pm, Peter Stephenson wrote: } Subject: Re: Calculator function } } "Bart Schaefer" wrote: } > On Jul 28, 12:17am, Peter Stephenson wrote: } > > +while vared -cehp "${(%)ZCALCPROMPT}" line; do } > } > Hrm, don't you want (%%) there? } } Couldn't really decide. With that, you need to change the prompt if you } unset PROMPT_PERCENT. Hmhm. Doesn't make that much difference to me, really, but why would it be a big deal to `setopt localoptions promptpercent' within zcalc? As it stands, zcalc is ignoring the surrounding promptpercent setting anyway; it just happens to also be ignoring the surrounding prompt(subst|bang). } I'm not sure it's good to force that on users of a function. Force what? -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net