From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28761 invoked from network); 5 Jun 2007 15:56:19 -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 15:56:19 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 11110 invoked from network); 5 Jun 2007 15:56:13 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 5 Jun 2007 15:56:13 -0000 Received: (qmail 10543 invoked by alias); 5 Jun 2007 15:56:07 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23526 Received: (qmail 10532 invoked from network); 5 Jun 2007 15:56:07 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 5 Jun 2007 15:56:07 -0000 Received: (qmail 10435 invoked from network); 5 Jun 2007 15:56:06 -0000 Received: from cluster-d.mailcontrol.com (217.69.20.190) by a.mx.sunsite.dk with SMTP; 5 Jun 2007 15:56:03 -0000 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly10d.srv.mailcontrol.com (MailControl) with ESMTP id l55FtvJ5029671 for ; Tue, 5 Jun 2007 16:55:57 +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 16:55:56 +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 l55FtuN7028930 for ; Tue, 5 Jun 2007 16:55:56 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.13.8/8.13.8/Submit) with ESMTP id l55FtuCE028927 for ; Tue, 5 Jun 2007 16:55:56 +0100 Message-Id: <200706051555.l55FtuCE028927@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: <20070605154633.GA36941@redoubt.spodhuis.org> References: <200706041518.l54FI4lV007223@news01.csr.com> <20070604192138.GA15026@redoubt.spodhuis.org> <200706051011.l55ABJJF009468@news01.csr.com> <20070605154633.GA36941@redoubt.spodhuis.org> Comments: In-reply-to Phil Pennock message dated "Tue, 05 Jun 2007 08:46:33 -0700." Date: Tue, 05 Jun 2007 16:55:55 +0100 From: Peter Stephenson X-OriginalArrivalTime: 05 Jun 2007 15:55:57.0066 (UTC) FILETIME=[0130F6A0:01C7A78A] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-07-07-05 (www.mailcontrol.com) on 10.68.0.120 Phil Pennock wrote: > On 2007-06-05 at 11:11 +0100, Peter Stephenson wrote: > > 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. > > % units --version | sed 's/^/STDOUT:/' > units: illegal option -- - > usage: units [-f unitsfile] [-q] [-v] [from-unit to-unit] That should be enough to help _pick_variant. I've tried two versions of the GNU version: STDOUT:units version 1.80 with readline, units database in /usr/share/units.dat STDOUT:GNU Units version 1.85 STDOUT:without readline, units database in /usr/share/units.dat STDOUT:Copyright (C) 2004 Free Software Foundation, Inc. STDOUT:GNU Units comes with ABSOLUTELY NO WARRANTY. STDOUT:You may redistribute copies of GNU Units STDOUT:under the terms of the GNU General Public License. STDOUT: (the units database output is also useful). Solaris just dumps its database and prints out the "you have: " prompt, which is ignored since _pick_variant redirects input from /dev/null. -- 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