Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: _units



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 <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: Reverse Date, Date, Thread, Author