]> git.ipfire.org Git - thirdparty/coreutils.git/commit
seq: do not allow NaN arguments
authorBernhard Voelker <mail@bernhard-voelker.de>
Thu, 14 Apr 2016 10:39:28 +0000 (12:39 +0200)
committerBernhard Voelker <mail@bernhard-voelker.de>
Thu, 14 Apr 2016 10:39:28 +0000 (12:39 +0200)
commit9a2e8ac489d7f7b2af4e1468f6174db9106eb9e4
tree321ec73641cd24d324fbb22f297cd042742e125b
parent81e589021d9c47e4fbc4284e82881a9703246476
seq: do not allow NaN arguments

* src/seq.c (isnan): Define macro.
(scan_arg): Add check if the given argument is NaN, and exit with
a proper error diagnostic in such a case.
(usage): Document it.
* tests/misc/seq.pl: Add tests.
* doc/coreutils.texi (seq invocation): Document the change.
* NEWS (Changes in behavior): Mention the change.
NEWS
doc/coreutils.texi
src/seq.c
tests/misc/seq.pl