From nobody@FreeBSD.org  Fri Dec 17 03:39:26 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5E9F316A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 17 Dec 2004 03:39:26 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4CADA43D49
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 17 Dec 2004 03:39:26 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id iBH3dQ3C087719
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 17 Dec 2004 03:39:26 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id iBH3dQSt087718;
	Fri, 17 Dec 2004 03:39:26 GMT
	(envelope-from nobody)
Message-Id: <200412170339.iBH3dQSt087718@www.freebsd.org>
Date: Fri, 17 Dec 2004 03:39:26 GMT
From: A Wood <adwood@earthlink.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: jot duplicates numbers in simple invocation: jot 18 1 18
X-Send-Pr-Version: www-2.3

>Number:         75175
>Category:       bin
>Synopsis:       jot duplicates numbers in simple invocation: jot 18 1 18
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 17 03:40:27 GMT 2004
>Closed-Date:    Mon Nov 06 12:10:30 GMT 2006
>Last-Modified:  Mon Nov 06 12:10:30 GMT 2006
>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:

From: A Wood <adwood@earthlink.net>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: 	misc/75175: jot duplicates numbers in simple invocation: jot 18 1 18
Date: Fri, 17 Dec 2004 03:39:26 GMT

 >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:
 _______________________________________________
 freebsd-bugs@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
 To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"

From: Edwin Groothuis <edwin@mavetju.org>
To: A Wood <adwood@earthlink.net>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/75175: jot duplicates numbers in simple invocation: jot 18 1 18
Date: Tue, 21 Dec 2004 18:00:52 +1100

 On Fri, Dec 17, 2004 at 03:39:26AM +0000, A Wood wrote:
 > 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
 
 FreeBSD mag.barnet.com.au 5.3-RELEASE FreeBSD 5.3-RELEASE #2: Mon Dec 13 13:18:03 EST 2004     root@mag.barnet.com.au:/usr/src/sys/i386/compile/mag  i386
 
 root@mag:~# jot -s ' ' 17 1
 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
 root@mag:~# jot -s ' ' 17 1 17
 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
 root@mag:~# jot -s ' ' 18 1
 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
 root@mag:~# jot -s ' ' 18 1 18
 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
 root@mag:~# jot -s ' ' 35 1 35
 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 26 27 28 29 30 31 32 33 34 35
 root@mag:~# 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 26
 
 root@mag:/usr/src/usr.bin/jot# md5 *
 MD5 (Makefile) = 849e159b332de19b97b8070ad8621868
 MD5 (jot.1) = 48b637da81528f8ccc2af123cda39294
 MD5 (jot.c) = d490fcdf978aa48946a49d020858153a
 
 The binary is the one from the mini-ISO from 5.3:
 
 MD5 (/usr/bin/jot) = f29ba522b83e1b001811ca84eeb4d6a9
 
 -- 
 Edwin Groothuis      |            Personal website: http://www.mavetju.org
 edwin@mavetju.org    |          Weblog: http://weblog.barnet.com.au/edwin/
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Mon Nov 6 12:08:19 UTC 2006 
State-Changed-Why:  
Not reproduceable. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75175 
>Unformatted:
