Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1189343

Bug#1065593: units: Allow access to user's own input

From Dan Jacobson <jidanni@jidanni.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#1065593: units: Allow access to user's own input
Date 2024-03-07 08:40 +0100
Message-ID <Ifgw9-eYME-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


X-Debbugs-Cc: adrianm@gnu.org
Package: units
Version: 2.23-1
Severity: wishlist

It seems that a big lack of the units program, is access to the user's
own input after he inputs it.

Often one needs access to the original input value, and currently must
use workarounds.

$ for i in `seq 5`; do echo -n "$i mi = "; units --terse ${i}mi km; done|sed 's/$/ km/'
1 mi = 1.609344 km
2 mi = 3.218688 km
3 mi = 4.828032 km
4 mi = 6.437376 km
5 mi = 8.04672 km

Maybe allow something like

$ for i in `seq 5`; do units --printf "%d{input} mi = %f{output} km\n" ${i}mi km; done

I don't know.

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#1065593: units: Allow access to user's own input Dan Jacobson <jidanni@jidanni.org> - 2024-03-07 08:40 +0100

csiph-web