]> git.ipfire.org Git - thirdparty/coreutils.git/commit
seq: support inf last item more generally/efficiently
authorPádraig Brady <P@draigBrady.com>
Sat, 11 Oct 2014 09:06:48 +0000 (10:06 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 24 Jun 2015 16:03:35 +0000 (17:03 +0100)
commitfc6825b231b43c12738fb65a9309cdecb67f6833
tree50bb0b64a18e3a6b636ecc11f8d41b5778488d45
parent53883af063d13a628520615e12705bc6f3a549ec
seq: support inf last item more generally/efficiently

* src/seq.c (main): Call seq_fast for infinite last value.
This implicitly avoids format conversion on the
999999 -> 1000000 transition.
* src/seq.c (seq_fast): Generalize the buffer handling,
and adjust to handle the "inf" last value specifics.
* tests/misc/seq-precision.sh: A new test.
* tests/local.mk: Reference the new test.
src/seq.c
tests/local.mk
tests/misc/seq-precision.sh [new file with mode: 0755]