From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26450 invoked from network); 4 Jun 2007 20:30:45 -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.5 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; 4 Jun 2007 20:30:45 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 72293 invoked from network); 4 Jun 2007 20:30:39 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Jun 2007 20:30:39 -0000 Received: (qmail 21882 invoked by alias); 4 Jun 2007 20:30:36 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23522 Received: (qmail 21872 invoked from network); 4 Jun 2007 20:30:35 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 4 Jun 2007 20:30:35 -0000 Received: (qmail 71961 invoked from network); 4 Jun 2007 20:30:35 -0000 Received: from wr-out-0506.google.com (64.233.184.225) by a.mx.sunsite.dk with SMTP; 4 Jun 2007 20:30:32 -0000 Received: by wr-out-0506.google.com with SMTP id i28so822629wra for ; Mon, 04 Jun 2007 13:30:30 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=E0sMAmXrAru7HpAgJ1UB/VEBJVSZXjCy+1ZS9FQV+zubk32lkY7EyXXNYktkaBphBwv1tWPhbgs5YnefX07TN7X8h5WszoLwGoW9JY8iI7xpX8uJDP+QsR5EfVmBx7205RCiGIj8mB2MY78MPQZJAMB33jSg/1s1mRmIJaetoMk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MiCZsjUUHP1/hR7+YNpVrsrfznt6PoGfEnG+12yW/lhfKN8zkkSPb09byY8iZOnxWt9B5wgX8NZZYZHOtbw6ODwvFeRJiU/n430BI+FhWFCIuinPCrLXorRQa4byxgiwTp+HiYvdyx87X0rpzypMSekaXqHpeUmNmGMiyEWqeog= Received: by 10.142.103.6 with SMTP id a6mr236047wfc.1180989030281; Mon, 04 Jun 2007 13:30:30 -0700 (PDT) Received: by 10.142.79.11 with HTTP; Mon, 4 Jun 2007 13:30:30 -0700 (PDT) Message-ID: <237967ef0706041330k6969c11dqcea5d862144b1756@mail.gmail.com> Date: Mon, 4 Jun 2007 22:30:30 +0200 From: "Mikael Magnusson" To: "Peter Stephenson" Subject: Re: PATCH: _units Cc: "Zsh hackers list" In-Reply-To: <200706041518.l54FI4lV007223@news01.csr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200706041518.l54FI4lV007223@news01.csr.com> On 04/06/07, Peter Stephenson wrote: > This implements completion for GNU units. As noted, it's not that > useful for some other implementations which don't take command line > arguments, though for any that do and have a text data file it should be > extensible. The location of the data file can no doubt be in other > places than the ones listed. > [..] > +# Find the units data. > +local datfile > +local -a testfiles > +testfiles=( > + /usr/share/units.dat # GNU > + /usr/local/share/units.dat > + /usr/share/lib/unittab # Solaris /usr/share/units/units.dat here (gentoo linux), at school it's on /usr/share/misc/units.dat (debian 3.1 i think). > +) -- Mikael Magnusson