bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#15068: `seq' prints the numbers from FIRST to (maybe almost) LAST by


From: jidanni
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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]