bug-sh-utils
[Top][All Lists]
Advanced

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

Bug in 'seq'?


From: Phillip Jones
Subject: Bug in 'seq'?
Date: Fri, 22 Mar 2002 16:55:36 -0500 (EST)

Version:
        sh-utils-2.0.11-5 as shiped by RedHat
Noticed:
        "seq" sometimes skips `LAST´ when `INCREMENT´ is not 1. 
Expected:
        "seq" to consitantly output `LAST´ when is equals 
        `FIRST´+(N*`INCREMENT´) 
Examples:
        > seq 0 1
        0
        1
        > seq 0 1 1
        0 
        1
        > seq 0 .5 1
        0 
        0.5
        1
        > seq 0 .1 1
        0
        0.1
        0.2
        0.3
        0.4
        0.5
        0.6
        0.7
        0.8
        0.9
        >

        Note the lack of `1.0´.
        Simular effects can be made by:
        > seq 0 .2 10
        But this seem to be ok:
        > seq 0 .5 10

Thank you.
        
-- 
-Phillip Jones            KG4IVD              <address@hidden>
[-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-]
I have found that alcohol, when consumed in sufficient quantities, tends
to bring about all the effects of drunkeness.
                --Oscar Wilde
--
This does not necessarily represent anybody's views, including mine.
1024D/69C63B44 1024D/5B5C7F36 http://www.datastacks.com/~mouse/pgp.txt - 
No part of this message is intended as a binding contract.





reply via email to

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