From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5816 invoked from network); 5 Jun 2007 10:11:46 -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; 5 Jun 2007 10:11:46 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 95038 invoked from network); 5 Jun 2007 10:11:39 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 5 Jun 2007 10:11:39 -0000 Received: (qmail 22139 invoked by alias); 5 Jun 2007 10:11:36 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23523 Received: (qmail 22127 invoked from network); 5 Jun 2007 10:11:35 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 5 Jun 2007 10:11:35 -0000 Received: (qmail 94729 invoked from network); 5 Jun 2007 10:11:35 -0000 Received: from cluster-c.mailcontrol.com (168.143.177.190) by a.mx.sunsite.dk with SMTP; 5 Jun 2007 10:11:32 -0000 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly26c.srv.mailcontrol.com (MailControl) with ESMTP id l55ABFgl016900 for ; Tue, 5 Jun 2007 11:11:25 +0100 Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Tue, 5 Jun 2007 11:11:19 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.8/8.13.4) with ESMTP id l55ABJqp009471 for ; Tue, 5 Jun 2007 11:11:19 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.13.8/8.13.8/Submit) with ESMTP id l55ABJJF009468 for ; Tue, 5 Jun 2007 11:11:19 +0100 Message-Id: <200706051011.l55ABJJF009468@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: Zsh hackers list Subject: Re: PATCH: _units In-reply-to: <20070604192138.GA15026@redoubt.spodhuis.org> References: <200706041518.l54FI4lV007223@news01.csr.com> <20070604192138.GA15026@redoubt.spodhuis.org> Comments: In-reply-to Phil Pennock message dated "Mon, 04 Jun 2007 12:21:38 -0700." Date: Tue, 05 Jun 2007 11:11:19 +0100 From: Peter Stephenson X-OriginalArrivalTime: 05 Jun 2007 10:11:19.0888 (UTC) FILETIME=[DCA1FD00:01C7A759] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-07-07-05 (www.mailcontrol.com) on 10.67.0.136 Phil Pennock wrote: > FreeBSD: /usr/share/misc/units.lib > I suspect that holds for all the modern *BSDs. Thanks, I've committed yours and Mikael's suggestions. > My completion-fu sucks; how would this be able to detect automatically > something like FreeBSD units(1), which uses -v for the version: Probably the first thing to do is run with the --version option and look at what you get. The worst it's likely to do is print an error message. -- 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