misc/75175: jot duplicates numbers in simple invocation: jot 18 1 18

A Wood adwood at earthlink.net
Thu Dec 16 19:40:28 PST 2004


>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 at 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:


More information about the freebsd-bugs mailing list