From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7471 invoked from network); 4 Jun 2007 19:21:53 -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 19:21:53 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 83731 invoked from network); 4 Jun 2007 19:21:47 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Jun 2007 19:21:47 -0000 Received: (qmail 14119 invoked by alias); 4 Jun 2007 19:21:44 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23521 Received: (qmail 14108 invoked from network); 4 Jun 2007 19:21:44 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 4 Jun 2007 19:21:44 -0000 Received: (qmail 83432 invoked from network); 4 Jun 2007 19:21:44 -0000 Received: from redoubt.spodhuis.org (HELO mx.spodhuis.org) (193.202.115.177) by a.mx.sunsite.dk with SMTP; 4 Jun 2007 19:21:39 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=first1; d=spodhuis.org; h=Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; b=Y7wem4pdyTMRHDq7FGL40Aix94JW4FXlXCF7smnFVoHkiYgsuNx83A6SWecrcK3qpmFdKM0I2PGj7Mb8w1/oQhuSUnpyG9JZzfA+3sZZpo80isKRtdeqyP1XPdehTAojtd56cqCcN3xg545v9bjG++XiFgC5G6+vHleK3+m7TVU=; Received: by smtp.spodhuis.org with local id 1HvI7W-0003vg-7f; Mon, 04 Jun 2007 19:21:38 +0000 Date: Mon, 4 Jun 2007 12:21:38 -0700 From: Phil Pennock To: Zsh hackers list Subject: Re: PATCH: _units Message-ID: <20070604192138.GA15026@redoubt.spodhuis.org> Mail-Followup-To: Zsh hackers list References: <200706041518.l54FI4lV007223@news01.csr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200706041518.l54FI4lV007223@news01.csr.com> On 2007-06-04 at 16:18 +0100, 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. FreeBSD: /usr/share/misc/units.lib I suspect that holds for all the modern *BSDs. My completion-fu sucks; how would this be able to detect automatically something like FreeBSD units(1), which uses -v for the version: ----------------------------8< cut here >8------------------------------ % units -v units version 1.0 Copyright (c) 1993 by Adrian Mariano This program may be freely distributed usage: units [-f unitsfile] [-q] [-v] [from-unit to-unit] % ----------------------------8< cut here >8------------------------------ -Phil