<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/usr.bin/units, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/'/>
<updated>2020-03-17T10:02:59Z</updated>
<entry>
<title>Tell the world how to convert gigabytes to bytes with units(1) easily</title>
<updated>2020-03-17T10:02:59Z</updated>
<author>
<name>Mateusz Piotrowski</name>
<email>0mp@FreeBSD.org</email>
</author>
<published>2020-03-17T10:02:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=3431172fa862dccb2a8b918161da186cfafc95f0'/>
<id>urn:sha1:3431172fa862dccb2a8b918161da186cfafc95f0</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>units(1): Refactor the manual page and update usage information</title>
<updated>2020-02-03T15:22:46Z</updated>
<author>
<name>Mateusz Piotrowski</name>
<email>0mp@FreeBSD.org</email>
</author>
<published>2020-02-03T15:22:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=4a3b87e295e2149f7a22b41839e5df19f2b836b1'/>
<id>urn:sha1:4a3b87e295e2149f7a22b41839e5df19f2b836b1</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>Correct a typo: was -&gt; way.</title>
<updated>2019-01-21T15:27:58Z</updated>
<author>
<name>Glen Barber</name>
<email>gjb@FreeBSD.org</email>
</author>
<published>2019-01-21T15:27:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=6b27f978f52da937226cf265cd2662b82aeeb79d'/>
<id>urn:sha1:6b27f978f52da937226cf265cd2662b82aeeb79d</id>
<content type='text'>
Submitted by:	Larry Hynes
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>capsicum: use a new capsicum helpers in tools</title>
<updated>2018-11-04T19:24:49Z</updated>
<author>
<name>Mariusz Zaborski</name>
<email>oshogbo@FreeBSD.org</email>
</author>
<published>2018-11-04T19:24:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=377421df9690cddad7f0c8cba84bd392e62a3b6c'/>
<id>urn:sha1:377421df9690cddad7f0c8cba84bd392e62a3b6c</id>
<content type='text'>
Use caph_{rights,ioctls,fcntls}_limit to simplify the code.
</content>
</entry>
<entry>
<title>Convert `cap_enter() &lt; 0 &amp;&amp; errno != ENOSYS` to `caph_enter() &lt; 0`.</title>
<updated>2018-06-19T23:43:14Z</updated>
<author>
<name>Mariusz Zaborski</name>
<email>oshogbo@FreeBSD.org</email>
</author>
<published>2018-06-19T23:43:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=7672a0148f79063eac8f8e0beb0db5350d02d5d4'/>
<id>urn:sha1:7672a0148f79063eac8f8e0beb0db5350d02d5d4</id>
<content type='text'>
No functional change intended.
</content>
</entry>
<entry>
<title>units: fix some nits</title>
<updated>2018-06-16T21:07:46Z</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2018-06-16T21:07:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=943a127c89801ea40eb3c8417ccc4b931b73d01f'/>
<id>urn:sha1:943a127c89801ea40eb3c8417ccc4b931b73d01f</id>
<content type='text'>
- prefer braces to abusing the `,` operator
- mark dead function as dead
- remove dead break
</content>
</entry>
<entry>
<title>units(1): units(1) free savescr in error condition too</title>
<updated>2018-01-15T17:27:43Z</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2018-01-15T17:27:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=9cd768a17735cba98c4fe80ec76e5bbdcda118c5'/>
<id>urn:sha1:9cd768a17735cba98c4fe80ec76e5bbdcda118c5</id>
<content type='text'>
CID:		978392
Reviewed by:	des
MFC After:	1 week
</content>
</entry>
<entry>
<title>units(1): add missing ':' for two short arguments</title>
<updated>2018-01-05T07:24:43Z</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2018-01-05T07:24:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=21dc7ae75beea1fbd1571dcf906c215e9e15b690'/>
<id>urn:sha1:21dc7ae75beea1fbd1571dcf906c215e9e15b690</id>
<content type='text'>
PR:		209850
MFC After:	3 days
</content>
</entry>
<entry>
<title>various: general adoption of SPDX licensing ID tags.</title>
<updated>2017-11-27T15:37:16Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-11-27T15:37:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=1de7b4b805ddbf2429da511c053686ac4591ed89'/>
<id>urn:sha1:1de7b4b805ddbf2429da511c053686ac4591ed89</id>
<content type='text'>
Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

No functional change intended.
</content>
</entry>
<entry>
<title>DIRDEPS_BUILD: Update dependencies.</title>
<updated>2017-10-31T00:07:04Z</updated>
<author>
<name>Bryan Drewery</name>
<email>bdrewery@FreeBSD.org</email>
</author>
<published>2017-10-31T00:07:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=ea825d02749f382c3f7e17f28247f20a48733eab'/>
<id>urn:sha1:ea825d02749f382c3f7e17f28247f20a48733eab</id>
<content type='text'>
Sponsored by:	Dell EMC Isilon
</content>
</entry>
</feed>
