Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Dec 2004 03:39:26 GMT
From:      A Wood <adwood@earthlink.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:    misc/75175: jot duplicates numbers in simple invocation: jot 18 1 18
Message-ID:  <200412170339.iBH3dQSt087718@www.freebsd.org>
Resent-Message-ID: <200412170340.iBH3eS7Z032564@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         75175
>Category:       misc
>Synopsis:       jot duplicates numbers in simple invocation: jot 18 1 18
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 17 03:40:27 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     A Wood
>Release:        5-STABLE
>Organization:
>Environment:
FreeBSD host 5.3-STABLE FreeBSD 5.3-STABLE #0: Sat Nov 20 01:56:53 EST 2004     root@host:/usr/obj/usr/src/sys/HOST  i386
>Description:
/usr/bin/jot duplicates numbers when called with reps > 17 and an upper bound parameter.  The upper bound parameter is not always necessary, though. See the examples below.

>How-To-Repeat:
Note, -s is not necessary, but makes the output more terse:

% jot -s ' ' 17 1 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
% jot -s ' ' 17 1 17
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
% jot -s ' ' 18 1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
% jot -s ' ' 18 1 18
1 2 3 4 5 6 7 8 9 10 10 11 12 13 14 15 16 17
 [dup 10s]
% jot -s ' ' 35 1 35
1 2 3 4 5 6 7 8 9 10 10 11 12 13 14 15 16 17 18 19 20 21 22 22 23 24 25 26 27 28 29 30 31 32 33
 [dup 10s, 22s]
% jot -s ' ' 26 1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 25
 [dup 25s]
>Fix:
      
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412170339.iBH3dQSt087718>