From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14227 invoked from network); 19 Dec 2007 20:03:53 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 19 Dec 2007 20:03:53 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 7481 invoked from network); 19 Dec 2007 20:03:46 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 19 Dec 2007 20:03:45 -0000 Received: (qmail 28313 invoked by alias); 19 Dec 2007 20:03:41 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24299 Received: (qmail 28292 invoked from network); 19 Dec 2007 20:03:40 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 19 Dec 2007 20:03:40 -0000 Received: from virusfilter.dotsrc.org (bifrost [127.0.0.1]) by spamfilter.dotsrc.org (Postfix) with ESMTP id 8B4058058F54 for ; Wed, 19 Dec 2007 21:00:25 +0100 (CET) Received: from mtaout03-winn.ispmail.ntl.com (mtaout03-winn.ispmail.ntl.com [81.103.221.49]) by bifrost.dotsrc.org (Postfix) with ESMTP for ; Wed, 19 Dec 2007 21:00:25 +0100 (CET) Received: from aamtaout03-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout03-winn.ispmail.ntl.com with ESMTP id <20071219200427.TCIV20647.mtaout03-winn.ispmail.ntl.com@aamtaout03-winn.ispmail.ntl.com>; Wed, 19 Dec 2007 20:04:27 +0000 Received: from pws-pc ([82.6.96.116]) by aamtaout03-winn.ispmail.ntl.com with SMTP id <20071219200501.EGAP26699.aamtaout03-winn.ispmail.ntl.com@pws-pc>; Wed, 19 Dec 2007 20:05:01 +0000 Date: Wed, 19 Dec 2007 20:01:45 +0000 From: Peter Stephenson To: Tonguc Yumruk , 457076@bugs.debian.org, zsh-workers@sunsite.dk Subject: Re: Bug#457076: zsh: is-at-least does not work properly Message-Id: <20071219200145.c8e68def.p.w.stephenson@ntlworld.com> In-Reply-To: <20071219191934.GB12859@scowler.net> References: <20071219151458.GA4123@terra.galaxy> <20071219191934.GB12859@scowler.net> X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP On Wed, 19 Dec 2007 14:19:34 -0500 Clint Adams wrote: > On Wed, Dec 19, 2007 at 05:15:09PM +0200, Tonguc Yumruk wrote: > > The is-at-least function in zsh (which is used in some other functions) > > uses setopt LOCAL_OPTIONS which is only available in ksh emulation mode. > > Instead it should use emulate -L zsh to use LOCAL_OPTIONS in zsh mode. > > Patch is attached. "setopt LOCAL_OPTIONS" should work fine in all modes. If there are places where it doesn't that's a bug. It would be more consistent to use "emulate -L zsh" here but it's exactly equivalent to what's there already. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/