1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-27 11:55:06 +00:00
freebsd/usr.bin/seq
Conrad Meyer 3049d4ccc0 seq(1): Consistently include 'last' for non-integers
The source of error is a rounded increment being too large and thus the loop
steps slightly past 'last'.  Perform a final comparison using the formatted
string values (truncated precision) to determine if we still need to print
the 'last' value.

PR:		217149
Submitted by:	Fernando Apesteguía <fernando.apesteguia AT gmail.com>,
		Yuri Pankov <yuripv AT icloud.com> (earlier version)
Reported by:	Martijn Dekker <mcdutchie AT hotmail.com>
Sponsored by:	Dell EMC Isilon
2018-02-27 22:01:40 +00:00
..
tests seq(1): Consistently include 'last' for non-integers 2018-02-27 22:01:40 +00:00
Makefile seq(1): Consistently include 'last' for non-integers 2018-02-27 22:01:40 +00:00
Makefile.depend
seq.1
seq.c seq(1): Consistently include 'last' for non-integers 2018-02-27 22:01:40 +00:00