| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Remove /^\.\\"\s*\$FreeBSD\$$\n/
Similar commit in main:
(cherry picked from commit b2c76c41be32)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=359032
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=357449
|
|
|
|
|
|
|
|
|
| |
Submitted by: Larry Hynes
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/head/; revision=343259
|
|
|
|
|
|
|
|
|
|
| |
PR: 209876
Submitted by: <kdrakehp AT zoho DOT com>
Approved by: bcr (mentor)
Differential Revision: https://reviews.freebsd.org/D11988
Notes:
svn path=/head/; revision=322424
|
|
|
|
|
|
|
|
| |
Reported by: make manlint
MFC after: 2 days
Notes:
svn path=/head/; revision=313664
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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.
Notes:
svn path=/head/; revision=298388
|
|
|
|
|
|
|
|
| |
- this matches GNU units 2.12
add ISO country codes from units 2.12
Notes:
svn path=/head/; revision=298253
|
|
|
|
|
|
|
|
| |
Add support for the output-format argument. This also exposes subtle
rounding differences between GNU units and our units.
Notes:
svn path=/head/; revision=268792
|
|
|
|
|
|
|
| |
Modern GNU units(1) supports comments anywhere with '#' but take the easy route for now and at least support start of line # comments.
Notes:
svn path=/head/; revision=268278
|
|
|
|
|
|
|
| |
terse output is used when calling units from another script.
Notes:
svn path=/head/; revision=268277
|
|
|
|
|
|
|
|
| |
- Add support for --help for compatibility
- Make usage() static
Notes:
svn path=/head/; revision=268271
|
|
|
|
|
|
|
|
|
| |
Igor walks one way. I walked the other.
Reported by: wblock
Notes:
svn path=/head/; revision=268270
|
|
|
|
|
|
|
|
|
| |
Things brings additional compatibility with units 2.10
Discussed with: wblock (man page)
Notes:
svn path=/head/; revision=268269
|
|
|
|
|
|
|
|
| |
PR: 191174
Submitted by: Franco Fichtner <franco at lastsummer.de>
Notes:
svn path=/head/; revision=267773
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=264470
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=264463
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=264216
|
|
|
|
|
|
|
| |
Reviewed by: brueffer
Notes:
svn path=/head/; revision=233510
|
|
|
|
|
|
|
|
|
|
| |
forgot to tell the man page we could now convert Celsius to Fahrenheit.
Approved by: re (kib)
MFC after: 1 month
Notes:
svn path=/head/; revision=225596
|
|
|
|
| |
Notes:
svn path=/head/; revision=141846
|
|
|
|
| |
Notes:
svn path=/head/; revision=140420
|
|
|
|
| |
Notes:
svn path=/head/; revision=131491
|
|
|
|
| |
Notes:
svn path=/head/; revision=131475
|
|
|
|
| |
Notes:
svn path=/head/; revision=79755
|
|
|
|
|
|
|
|
| |
PR: 26631
Submitted by: Glenn Johnson, glennpj@charter.net
Notes:
svn path=/head/; revision=75941
|
|
|
|
| |
Notes:
svn path=/head/; revision=73259
|
|
|
|
|
|
|
| |
name if 'a' and 'b' are unit names. You can use 'a b' though.
Notes:
svn path=/head/; revision=70338
|
|
|
|
| |
Notes:
svn path=/head/; revision=70197
|
|
|
|
| |
Notes:
svn path=/head/; revision=68854
|
|
|
|
| |
Notes:
svn path=/head/; revision=50477
|
|
|
|
| |
Notes:
svn path=/head/; revision=34801
|
|
|
|
| |
Notes:
svn path=/head/; revision=28502
|
|
|
|
| |
Notes:
svn path=/head/; revision=25504
|
|
|
|
| |
Notes:
svn path=/head/; revision=23012
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=21673
|
|
|
|
|
|
|
|
| |
Reviewed by: alex
Submitted by: Adrian Mariano <adrian@cam.cornell.edu>
Notes:
svn path=/head/; revision=16269
|
|
Submitted by: Jeremy Prior
Obtained from: NetBSD
Notes:
svn path=/vendor/NetBSD/dist/; revision=16186
|