#
b2c76c41 |
|
16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line nroff pattern Remove /^\.\\"\s*\$FreeBSD\$$\n/
|
#
3431172f |
|
17-Mar-2020 |
Mateusz Piotrowski <0mp@FreeBSD.org> |
Tell the world how to convert gigabytes to bytes with units(1) easily It turns out that units(1) is not as horrible to use in scripts as I initially thought. When the --terse flag is combined with an appropriate output format (set via --output-format), units(1) is actually capable of producing very nice results. For example: units -o %0.f -t '4 gigabytes' bytes is is just going to print out the expected value of 4294967296. There is no time to waste. People have to know about it. I am adding an example for this at the top of the examples section because this is what users are most likely looking for. Approved by: bcr (mentor) Differential Revision: https://reviews.freebsd.org/D24096
|
#
4a3b87e2 |
|
03-Feb-2020 |
Mateusz Piotrowski <0mp@FreeBSD.org> |
units(1): Refactor the manual page and update usage information Changes to units.1: - Change the description to a more descriptive "conversion calculator". - Sort options. - Split the description into sections to make it easier to navigate the manual page. - Improve the description of various options. - Document the default value of the output format. - Use more mdoc macros for better readability. - Document the behavior of the PATH environmental variable. - Improve examples. - Add sections: EXIT STATUS, DIAGNOSTICS, and HISTORY. - Document that units(1) cannot convert negative values and it handles long unit lists poorly. - Update the documentation of the -V flag to match the implementation. units(1) prints its version and the units data file instead of its version and usage information. Changes to units.c: - Update usage information. - Sort longopts elements. This commit does not attempts to change the current behavior of units(1). What's left to do is probably defining a better versioning (at the moment units(1) always reports "FreeBSD units" as its version) and changing the behavior of the -V flag to only print version. Reviewed by: allanjude (earlier version), bcr Approved by: bcr (mentor) Differential Revision: https://reviews.freebsd.org/D18977
|
#
6b27f978 |
|
21-Jan-2019 |
Glen Barber <gjb@FreeBSD.org> |
Correct a typo: was -> way. Submitted by: Larry Hynes MFC after: 3 days Sponsored by: The FreeBSD Foundation
|
#
b6687401 |
|
11-Aug-2017 |
Sevan Janiyan <sevan@FreeBSD.org> |
Correct the -H longopt equivillant PR: 209876 Submitted by: <kdrakehp AT zoho DOT com> Approved by: bcr (mentor) Differential Revision: https://reviews.freebsd.org/D11988
|
#
e7e1f7e3 |
|
11-Feb-2017 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Escape No to avoid confusion with the No macro Reported by: make manlint MFC after: 2 days
|
#
c706c470 |
|
20-Apr-2016 |
Eitan Adler <eadler@FreeBSD.org> |
Bring a little more compability with GNU units 2.12 - notionally support a 'history file' flag. This doesn't do much now, but is there to prevent scripts written against GNU units from breaking - correctly gracefully quit rather than exit (this will make it easier to support a history file in the future) - remove the "t" flag from fopen which was there to support windows. We have not supported windows since at the latest, the introduction of capsicum.
|
#
3851177d |
|
18-Apr-2016 |
Eitan Adler <eadler@FreeBSD.org> |
Rename units.lib -> definitions.units - this matches GNU units 2.12 add ISO country codes from units 2.12
|
#
cae14847 |
|
17-Jul-2014 |
Eitan Adler <eadler@FreeBSD.org> |
units(1): Add support for output-format Add support for the output-format argument. This also exposes subtle rounding differences between GNU units and our units.
|
#
0ce97bdf |
|
04-Jul-2014 |
Eitan Adler <eadler@FreeBSD.org> |
units: Support start of line comments with '#' Modern GNU units(1) supports comments anywhere with '#' but take the easy route for now and at least support start of line # comments.
|
#
8d61f393 |
|
04-Jul-2014 |
Eitan Adler <eadler@FreeBSD.org> |
units(1): Add 'terse' support terse output is used when calling units from another script.
|
#
a913717b |
|
04-Jul-2014 |
Eitan Adler <eadler@FreeBSD.org> |
units(1): Add 'help' flag - Add support for --help for compatibility - Make usage() static
|
#
c27cc201 |
|
04-Jul-2014 |
Eitan Adler <eadler@FreeBSD.org> |
units(1): Fix man page Igor walks one way. I walked the other. Reported by: wblock
|
#
5192ff45 |
|
04-Jul-2014 |
Eitan Adler <eadler@FreeBSD.org> |
units(1): add long options Things brings additional compatibility with units 2.10 Discussed with: wblock (man page)
|
#
2b7af31c |
|
23-Jun-2014 |
Baptiste Daroussin <bapt@FreeBSD.org> |
use .Mt to mark up email addresses consistently (part3) PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de>
|
#
9653775e |
|
14-Apr-2014 |
Eitan Adler <eadler@FreeBSD.org> |
units(1): Add v option: verbose For increased compatibility with GNU units: support a -v option which produces more verbose output when spitting out the answer. GNU -v does additional work in the version, information, and check output which we do not (yet?) replicate.
|
#
114022f5 |
|
14-Apr-2014 |
Eitan Adler <eadler@FreeBSD.org> |
units(1): Add U option For increased compatibility with GNU units: support a -U option which tests for the existence of the default units file and prints it to the screen.
|
#
6d12a834 |
|
06-Apr-2014 |
Eitan Adler <eadler@FreeBSD.org> |
units(1): make -V print version instead of -v The units program is likely little used. It is even less likely that a script will want the units program to print out its version number by passing -v. GNU units uses -V for version and -v for verbosity. Increase compatibility between these two versions (written by the same author) by switching our flag as well. Take this opportunity to remove bogus information about the version number and just call it 'FreeBSD units'. Discussed with: cperciva, rwatson
|
#
c2965cd1 |
|
26-Mar-2012 |
Joel Dahl <joel@FreeBSD.org> |
mdoc: terminate quoted strings. Reviewed by: brueffer
|
#
ab7e5916 |
|
15-Sep-2011 |
David Malone <dwmalone@FreeBSD.org> |
It seems when I added code for affine unit changes to units, I forgot to tell the man page we could now convert Celsius to Fahrenheit. Approved by: re (kib) MFC after: 1 month
|
#
a7d5f7eb |
|
19-Oct-2010 |
Jamie Gritton <jamie@FreeBSD.org> |
A new jail(8) with a configuration file, to replace the work currently done by /etc/rc.d/jail.
|
#
fe0506d7 |
|
09-Mar-2010 |
Marcel Moolenaar <marcel@FreeBSD.org> |
Create the altix project branch. The altix project will add support for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting is a two-module system, consisting of a base compute module and a CPU expansion module. SGI's NUMAFlex architecture can be an excellent platform to test CPU affinity and NUMA-aware features in FreeBSD.
|
#
d7f03759 |
|
19-Oct-2008 |
Ulf Lilleengen <lulf@FreeBSD.org> |
- Import the HEAD csup code which is the basis for the cvsmode work.
|
#
0227791b |
|
13-Feb-2005 |
Ruslan Ermilov <ru@FreeBSD.org> |
Expand *n't contractions.
|
#
6c7216df |
|
18-Jan-2005 |
Ruslan Ermilov <ru@FreeBSD.org> |
Sort sections.
|
#
6a3e8b0a |
|
02-Jul-2004 |
Ruslan Ermilov <ru@FreeBSD.org> |
Mechanically kill hard sentence breaks.
|
#
11c798a4 |
|
02-Jul-2004 |
Ruslan Ermilov <ru@FreeBSD.org> |
mdoc(7): Fixed list types.
|
#
f247324d |
|
15-Jul-2001 |
Dima Dorfman <dd@FreeBSD.org> |
Remove whitespace at EOL.
|
#
e69b2bc1 |
|
25-Apr-2001 |
Doug Barton <dougb@FreeBSD.org> |
Reverse order of from and to in order to match reality. PR: 26631 Submitted by: Glenn Johnson, glennpj@charter.net
|
#
5bf62541 |
|
28-Feb-2001 |
Daniel C. Sobral <dcs@FreeBSD.org> |
All temperature scales are centigrades. Use "Celsius" instead.
|
#
294a60d8 |
|
24-Dec-2000 |
David Malone <dwmalone@FreeBSD.org> |
As far as I can tell, you have never been able to use 'ab' as a unit name if 'a' and 'b' are unit names. You can use 'a b' though.
|
#
9b88faec |
|
19-Dec-2000 |
Ruslan Ermilov <ru@FreeBSD.org> |
Prepare for mdoc(7)NG.
|
#
251c176f |
|
17-Nov-2000 |
Ruslan Ermilov <ru@FreeBSD.org> |
mdoc(7) police: use certified section headers wherever possible.
|
#
c3aac50f |
|
27-Aug-1999 |
Peter Wemm <peter@FreeBSD.org> |
$Id$ -> $FreeBSD$
|
#
306005e7 |
|
23-Mar-1998 |
Philippe Charnier <charnier@FreeBSD.org> |
.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.
|
#
d4d0763a |
|
21-Aug-1997 |
Philippe Charnier <charnier@FreeBSD.org> |
Use err(3). Cosmetic in usage(). Rewrote man page in mdoc format.
|
#
73e07a50 |
|
05-May-1997 |
Alexander Langer <alex@FreeBSD.org> |
Specify the full path of units.lib in the FILES section.
|
#
c115df18 |
|
22-Feb-1997 |
Peter Wemm <peter@FreeBSD.org> |
Revert $FreeBSD$ to $Id$
|
#
1130b656 |
|
14-Jan-1997 |
Jordan K. Hubbard <jkh@FreeBSD.org> |
Make the long-awaited change from $Id$ to $FreeBSD$ This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
|
#
fd70ee84 |
|
09-Jun-1996 |
Alexander Langer <alex@FreeBSD.org> |
Added revised manpage submitted by the author of units. Reviewed by: alex Submitted by: Adrian Mariano <adrian@cam.cornell.edu>
|
#
a3031715 |
|
07-Jun-1996 |
Alexander Langer <alex@FreeBSD.org> |
Units conversion utility courtesy of NetBSD. Submitted by: Jeremy Prior Obtained from: NetBSD
|