<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/cmp, branch releng/12.4</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2021-10-23T19:01:39Z</updated>
<entry>
<title>cmp: initialize limit to avoid stack garbage limits</title>
<updated>2021-10-23T19:01:39Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2021-10-21T16:30:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=aba2dc46dfa51cf9e1b1987ca4e91f703ae7e368'/>
<id>urn:sha1:aba2dc46dfa51cf9e1b1987ca4e91f703ae7e368</id>
<content type='text'>
Pointy hat:	kevans
Fixes:	4e380e847460 ("cmp: add -n, --bytes to limit number of bytes [...]")
Sponsored by:	Klara, Inc.

(cherry picked from commit f1f7f31366e5830f4f5b96c6394a0b91475744f4)
</content>
</entry>
<entry>
<title>cmp: add -b, --print-bytes</title>
<updated>2021-10-03T05:19:57Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2021-09-23T05:46:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e6eed7d7bc806c26e52eb0fe6c1c7f7f23eb3ea6'/>
<id>urn:sha1:e6eed7d7bc806c26e52eb0fe6c1c7f7f23eb3ea6</id>
<content type='text'>
This is compatible with GNU cmp.

Reviewed by:	bapt, markj (earlier version)
Sponsored by:	Klara, Inc.

(cherry picked from commit f66b9b40f403f7c30fec3c4ceed93c6e8fafa8ac)
</content>
</entry>
<entry>
<title>cmp: add -i, --ignore-initial, an alternative to skip1/skip2 args</title>
<updated>2021-10-03T05:19:56Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2021-09-23T05:43:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b0f46c4b84093b23e8d40ffbc1f7f63659a0123c'/>
<id>urn:sha1:b0f46c4b84093b23e8d40ffbc1f7f63659a0123c</id>
<content type='text'>
This is compatible with GNU cmp.

Reviewed by:	markj
Sponsored by:	Klara, Inc.

(cherry picked from commit 8d546b6832eea031f95f30eaec3232ec1256a281)
</content>
</entry>
<entry>
<title>cmp: add -n, --bytes to limit number of bytes to compare</title>
<updated>2021-10-03T05:19:56Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2021-09-23T05:26:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a67180b4b7706d504351c96359459876e9e0fb4b'/>
<id>urn:sha1:a67180b4b7706d504351c96359459876e9e0fb4b</id>
<content type='text'>
This is compatible with GNU cmp.

Reviewed by:	markj
Sponsored by:	Klara, Inc.

(cherry picked from commit 4e380e8474609875c4cf5277b3755ac29079a8b5)
</content>
</entry>
<entry>
<title>cmp: accept SI suffixes for skip1 and skip2</title>
<updated>2021-10-03T05:19:56Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2021-09-23T05:17:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=66691176665015a6c44ec78aa7f7ada8b4804a18'/>
<id>urn:sha1:66691176665015a6c44ec78aa7f7ada8b4804a18</id>
<content type='text'>
This is compatible with GNU cmp.

Reviewed by:	bapt (earlier version), markj, imp
Sponsored by:	Klara, Inc.

(cherry picked from commit f6787614fd4db2a9d5e649af0e819852ebd5a19d)
</content>
</entry>
<entry>
<title>cmp(1): Add EXAMPLES section</title>
<updated>2021-10-03T05:19:56Z</updated>
<author>
<name>Fernando Apesteguía</name>
<email>fernape@FreeBSD.org</email>
</author>
<published>2020-06-20T11:20:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ca052baa603aa5743c616d89c2fb2dfdb6fcd4ea'/>
<id>urn:sha1:ca052baa603aa5743c616d89c2fb2dfdb6fcd4ea</id>
<content type='text'>
Add a small number of examples depicting the use of -l, -z and byte offsets

(cherry picked from commit 1831993577db18d193e94269e337f6286536814e)
</content>
</entry>
<entry>
<title>cmp(1): Add EXAMPLES section</title>
<updated>2021-10-03T05:19:53Z</updated>
<author>
<name>Fernando Apesteguía</name>
<email>fernape@FreeBSD.org</email>
</author>
<published>2020-06-16T15:54:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a19dcf584263d53038a9ae803f98ceb68842934a'/>
<id>urn:sha1:a19dcf584263d53038a9ae803f98ceb68842934a</id>
<content type='text'>
Add simple examples showing the use of -l, -z, stdin and offsets

(cherry picked from commit 022ebaf5432d5a8112c7d75ab9d406176b3dfd39)
</content>
</entry>
<entry>
<title>cmp: fix -s (silent) when used with skip offsets</title>
<updated>2021-01-15T14:25:36Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2021-01-11T00:02:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=23b5fa56a182574fef416caeb55e6c735087e411'/>
<id>urn:sha1:23b5fa56a182574fef416caeb55e6c735087e411</id>
<content type='text'>
-s causes cmp to print nothing for differing files, for use when only
the exit status is of interest.

-z compares the file size first, for regular files, and fails the
comparison early if they do not match.

Prior to this change -s implied -z as an optimization, but this is not
valid when file offsets are specified.  Now, enable the -z optimization
for -s only if both skip arguments are not provided / 0.

Note that using -z with differing skip values will currently always
fail.  We may want to compare size1 - skip1 with size2 - skip2 instaead,
and in any case the man page should be clarified.

PR:		252542
Fixes:		3e6902efc802ab57fc4e9bf798f2d271b152e7f9
Reported by:	William Ahern
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D28071

(cherry picked from commit 80445b7a3f738e0b0a33ee7a11905a275346a6de)
</content>
</entry>
<entry>
<title>cmp: use C99 bool for flags</title>
<updated>2021-01-15T14:25:36Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2021-01-11T00:02:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c586a84d56f37eee73d880172ec7f2a8152e58ab'/>
<id>urn:sha1:c586a84d56f37eee73d880172ec7f2a8152e58ab</id>
<content type='text'>
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28072

(cherry picked from commit 1f7661742de650bcb6b9124ee3da7e94c8650c4b)
</content>
</entry>
<entry>
<title>MFC r344551:</title>
<updated>2019-12-06T18:27:50Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2019-12-06T18:27:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f1bb2f31d3072eefb26a95a6f71f47bda22b7753'/>
<id>urn:sha1:f1bb2f31d3072eefb26a95a6f71f47bda22b7753</id>
<content type='text'>
Fix handling of rights on stdio streams, take two.

PR:	234885
</content>
</entry>
</feed>
