diff options
author | Bernhard Voelker <mail@bernhard-voelker.de> | 2013-08-10 17:19:06 +0200 |
---|---|---|
committer | Bernhard Voelker <mail@bernhard-voelker.de> | 2013-08-10 17:19:06 +0200 |
commit | 4e9f5eb4e2f7614b74c1f930312acc455cc106e7 (patch) | |
tree | 5aeecae4a5c5b5c37021776a89fbe0b0b031d09e /doc | |
parent | 448030a2bf7bb83756f9126ac8795367ca0593cf (diff) | |
download | coreutils-4e9f5eb4e2f7614b74c1f930312acc455cc106e7.tar.xz |
doc: clarify when seq ends
* doc/coreutils.texi (seq invocation): Add a sentence clarifying
that seq terminates when LAST becomes smaller than the current number
plus INCREMENT.
* src/seq.c (usage): Likewise.
Fixes http://bugs.gnu.org/15068
Diffstat (limited to 'doc')
-rw-r--r-- | doc/coreutils.texi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi index aef5cc9f9..21216b4be 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -16810,6 +16810,9 @@ When @var{increment} is not specified, it defaults to @samp{1}, even when @var{first} is larger than @var{last}. @var{first} also defaults to @samp{1}. So @code{seq 1} prints @samp{1}, but @code{seq 0} and @code{seq 10 5} produce no output. +The sequence of numbers ends when the sum of the current number and +@var{increment} would become greater than @var{last}, +so @code{seq 1 10 10} only produces @samp{1}. Floating-point numbers may be specified. @xref{Floating point}. The program accepts the following options. Also see @ref{Common options}. |