GNU bug report logs - #15068
`seq' prints the numbers from FIRST to (maybe almost) LAST by INCREMENT

Previous Next

Package: coreutils;

Reported by: jidanni <at> jidanni.org

Date: Sat, 10 Aug 2013 13:57:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: jidanni <at> jidanni.org
To: 15068 <at> debbugs.gnu.org
Subject: bug#15068: `seq' prints the numbers from FIRST to (maybe almost) LAST by INCREMENT
Date: Sat, 10 Aug 2013 21:56:19 +0800
(info "(coreutils) seq invocation")

        ... seq [OPTION]... FIRST INCREMENT LAST

       `seq' prints the numbers from FIRST to LAST by INCREMENT.  By
    default, each number is printed on a separate line.  When INCREMENT is
    not specified, it defaults to `1', even when FIRST is larger than LAST.
    FIRST also defaults to `1'.  So `seq 1' prints `1', but `seq 0' and
    `seq 10 5' produce no output.  Floating-point numbers may be specified.
    *Note Floating point::.

OK but I think you forgot to mention cases like

$ seq 0 5 17

Will the last value printed be
15, 17, or 20?
the user wonders. Hard to tell from the man/info page.




This bug report was last modified 11 years and 282 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.