summaryrefslogtreecommitdiff
path: root/doc/coreutils.texi
diff options
context:
space:
mode:
authorBernhard Voelker <mail@bernhard-voelker.de>2016-04-14 12:39:28 +0200
committerBernhard Voelker <mail@bernhard-voelker.de>2016-04-14 12:39:28 +0200
commit9a2e8ac489d7f7b2af4e1468f6174db9106eb9e4 (patch)
tree321ec73641cd24d324fbb22f297cd042742e125b /doc/coreutils.texi
parent81e589021d9c47e4fbc4284e82881a9703246476 (diff)
downloadcoreutils-9a2e8ac489d7f7b2af4e1468f6174db9106eb9e4.tar.xz
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.
Diffstat (limited to 'doc/coreutils.texi')
-rw-r--r--doc/coreutils.texi1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 6b706359e..563020148 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -17424,6 +17424,7 @@ The sequence of numbers ends when the sum of the current number and
so @code{seq 1 10 10} only produces @samp{1}.
@var{increment} must not be @samp{0}; use @command{yes} to get
repeated output of a constant number.
+@var{first}, @var{increment} and @var{last} must not be @code{NaN}.
Floating-point numbers may be specified. @xref{Floating point}.
The program accepts the following options. Also see @ref{Common options}.