From: Peter Stephenson <pws@csr.com>
To: Zsh hackers list <zsh-workers@sunsite.dk>
Subject: Re: PATCH: _units
Date: Tue, 05 Jun 2007 16:55:55 +0100 [thread overview]
Message-ID: <200706051555.l55FtuCE028927@news01.csr.com> (raw)
In-Reply-To: <20070605154633.GA36941@redoubt.spodhuis.org>
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@csr.com> 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
next prev parent reply other threads:[~2007-06-05 15:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-04 15:18 Peter Stephenson
2007-06-04 19:21 ` Phil Pennock
2007-06-05 10:11 ` Peter Stephenson
2007-06-05 15:46 ` Phil Pennock
2007-06-05 15:55 ` Peter Stephenson [this message]
2007-06-04 20:30 ` Mikael Magnusson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200706051555.l55FtuCE028927@news01.csr.com \
--to=pws@csr.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).