Zsh Mailing List Archive
Messages sorted by:
Re: PATCH: _units
- X-seq: zsh-workers 23526
- From: Peter Stephenson <pws@xxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: Re: PATCH: _units
- Date: Tue, 05 Jun 2007 16:55:55 +0100
- In-reply-to: <20070605154633.GA36941@xxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200706041518.l54FI4lV007223@xxxxxxxxxxxxxx> <20070604192138.GA15026@xxxxxxxxxxxxxxxxxxxx> <200706051011.l55ABJJF009468@xxxxxxxxxxxxxx> <20070605154633.GA36941@xxxxxxxxxxxxxxxxxxxx>
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.
(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 <pws@xxxxxxx> 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
Messages sorted by: