]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r330086, r333155: seq(1) improvements
authorkevans <kevans@FreeBSD.org>
Wed, 27 Jun 2018 21:03:05 +0000 (21:03 +0000)
committerkevans <kevans@FreeBSD.org>
Wed, 27 Jun 2018 21:03:05 +0000 (21:03 +0000)
commita2fc4be72804308f88f3ac89d07b3d6d74e542cf
tree8b30eecaff3d89eb1057eb43e37d7130a78704c0
parente23d43edceee781f603ca3ad560b883bc139a6ae
MFC r330086, r333155: seq(1) improvements

MFC r330086 (cem): 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.

MFC r333155: seq(1): Move long_opts up with globals

PR: 217149
usr.bin/seq/Makefile
usr.bin/seq/seq.c
usr.bin/seq/tests/Makefile [new file with mode: 0644]
usr.bin/seq/tests/seq_test.sh [new file with mode: 0755]