summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBernhard Voelker <mail@bernhard-voelker.de>2013-08-10 17:19:06 +0200
committerBernhard Voelker <mail@bernhard-voelker.de>2013-08-10 17:19:06 +0200
commit4e9f5eb4e2f7614b74c1f930312acc455cc106e7 (patch)
tree5aeecae4a5c5b5c37021776a89fbe0b0b031d09e /src
parent448030a2bf7bb83756f9126ac8795367ca0593cf (diff)
downloadcoreutils-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 'src')
-rw-r--r--src/seq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/seq.c b/src/seq.c
index acbe2350a..35dfc8bd0 100644
--- a/src/seq.c
+++ b/src/seq.c
@@ -87,6 +87,8 @@ Print numbers from FIRST to LAST, in steps of INCREMENT.\n\
\n\
If FIRST or INCREMENT is omitted, it defaults to 1. That is, an\n\
omitted INCREMENT defaults to 1 even when LAST is smaller than FIRST.\n\
+The sequence of numbers ends when the sum of the current number and\n\
+INCREMENT would become greater than LAST.\n\
FIRST, INCREMENT, and LAST are interpreted as floating point values.\n\
INCREMENT is usually positive if FIRST is smaller than LAST, and\n\
INCREMENT is usually negative if FIRST is greater than LAST.\n\