diff options
author | Bernhard Voelker <mail@bernhard-voelker.de> | 2016-04-14 12:39:28 +0200 |
---|---|---|
committer | Bernhard Voelker <mail@bernhard-voelker.de> | 2016-04-14 12:39:28 +0200 |
commit | 9a2e8ac489d7f7b2af4e1468f6174db9106eb9e4 (patch) | |
tree | 321ec73641cd24d324fbb22f297cd042742e125b /doc | |
parent | 81e589021d9c47e4fbc4284e82881a9703246476 (diff) | |
download | coreutils-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')
-rw-r--r-- | doc/coreutils.texi | 1 |
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}. |