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


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

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

Started byDan Jacobson <jidanni@jidanni.org>
First post2024-03-07 08:40 +0100
Last post2024-03-07 08:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.debian.bugs.dist


Contents

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

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

FromDan Jacobson <jidanni@jidanni.org>
Date2024-03-07 08:40 +0100
SubjectBug#1065593: units: Allow access to user's own input
Message-ID<Ifgw9-eYME-5@gated-at.bofh.it>
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.

[toc] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web