<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/seq/seq.c, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2023-12-22T05:54:05Z</updated>
<entry>
<title>seq(1): Put separator only between the elements.</title>
<updated>2023-12-22T05:54:05Z</updated>
<author>
<name>Pawel Jakub Dawidek</name>
<email>pjd@FreeBSD.org</email>
</author>
<published>2023-12-19T02:39:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=eb4d13126d85665197ed7efc17c1ab442daa70ea'/>
<id>urn:sha1:eb4d13126d85665197ed7efc17c1ab442daa70ea</id>
<content type='text'>
- Using non-default ('\n') separator will produce an output with the
  separator at the end of the output, eg.

	% echo "[$(seq -s ' ' 0 2)]"
	[0 1 2 ]

- The output should always be followed by a new line character. Currently:

	% seq -s ' ' 0 2
	0 1 2 %

This change makes seq(1) to behave the same way Linux seq(1):

	% echo "[$(seq -s ' ' 0 2)]"
	[0 1 2]

	% seq -s ' ' 0 2
	0 1 2
	%

Approved by:	oshogbo
Differential Revision:	https://reviews.freebsd.org/D43094
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-16T17:54:42Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1d386b48a555f61cb7325543adbbb5c3f3407a66'/>
<id>urn:sha1:1d386b48a555f61cb7325543adbbb5c3f3407a66</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
</content>
</entry>
<entry>
<title>seq: style(9) cleanup</title>
<updated>2023-07-21T14:17:24Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2023-06-25T23:33:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8f8da1bcc799c3ffc306ae7cb37c6591c629d709'/>
<id>urn:sha1:8f8da1bcc799c3ffc306ae7cb37c6591c629d709</id>
<content type='text'>
This is in part for diff reduction with OpenBSD.

Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>seq: combine asprintf return value checks</title>
<updated>2023-06-25T23:57:17Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2023-06-19T02:10:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5dae8905a5141e0cba1f4f3f94116440a5ce2abb'/>
<id>urn:sha1:5dae8905a5141e0cba1f4f3f94116440a5ce2abb</id>
<content type='text'>
Error handling is identical for all of these failure cases.

Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>seq: fix check for rounding error/truncation</title>
<updated>2023-06-19T15:02:38Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2023-06-19T01:37:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e54db9a9ccd588f650a2e57bf9d1cbbafc0e12eb'/>
<id>urn:sha1:e54db9a9ccd588f650a2e57bf9d1cbbafc0e12eb</id>
<content type='text'>
Based on OpenBSD 30f0fd29ba6c:
&gt; We need to compare the printable version of the last value displayed,
&gt; not the floating point representation.  Otherwise, we may print the
&gt; last value twice.

PR:		271964
Reported by:	Daniel Kolesa
Reviewed by:	yuripv
Obtained from:	OpenBSD
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D40601
</content>
</entry>
<entry>
<title>spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSD</title>
<updated>2023-05-12T16:44:04Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-05-10T15:40:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b61a573019428cbdc38ed03be9ecd2482011ea66'/>
<id>urn:sha1:b61a573019428cbdc38ed03be9ecd2482011ea66</id>
<content type='text'>
The SPDX folks have obsoleted the BSD-2-Clause-NetBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with:		pfg
MFC After:		3 days
Sponsored by:		Netflix
</content>
</entry>
<entry>
<title>seq: fix style nits</title>
<updated>2022-10-01T10:05:07Z</updated>
<author>
<name>Mariusz Zaborski</name>
<email>oshogbo@FreeBSD.org</email>
</author>
<published>2022-09-30T17:38:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6da5e5d649ba255d41318daccc24e7af6984e0b1'/>
<id>urn:sha1:6da5e5d649ba255d41318daccc24e7af6984e0b1</id>
<content type='text'>
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>seq: fix potential NULL ptr reference</title>
<updated>2022-10-01T10:05:03Z</updated>
<author>
<name>Mariusz Zaborski</name>
<email>oshogbo@FreeBSD.org</email>
</author>
<published>2022-09-30T17:36:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=94c4f663bab58ec07584786dd76866011d5b2506'/>
<id>urn:sha1:94c4f663bab58ec07584786dd76866011d5b2506</id>
<content type='text'>
asprintf(3) allocates memory, and there isn't any guarantee of success.

MFC after:	2 weeks
Obtained from:  OpenBSD
</content>
</entry>
<entry>
<title>seq(1): Require user-provided format strings to contain a conversion</title>
<updated>2019-03-07T18:24:16Z</updated>
<author>
<name>Conrad Meyer</name>
<email>cem@FreeBSD.org</email>
</author>
<published>2019-03-07T18:24:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=905fdc3ff1c2e58478d205cd78d904ffa1f738d4'/>
<id>urn:sha1:905fdc3ff1c2e58478d205cd78d904ffa1f738d4</id>
<content type='text'>
This matches GNU seq, for example.

For users that are looking for similar functionality, 'jot -b foo N' will
print 'foo' N times.  See jot(1).

PR:		236347
Reported by:	&lt;y AT maya.st&gt;
Sponsored by:	Dell EMC Isilon
</content>
</entry>
<entry>
<title>seq(1): Move long_opts up with globals</title>
<updated>2018-05-02T01:04:13Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2018-05-02T01:04:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ad4e78b50a80361e164ee6885b6107692ba44463'/>
<id>urn:sha1:ad4e78b50a80361e164ee6885b6107692ba44463</id>
<content type='text'>
</content>
</entry>
</feed>
