From nobody@FreeBSD.org  Thu Jun 11 12:35:50 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 14A8A106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 11 Jun 2009 12:35:50 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 02DE08FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 11 Jun 2009 12:35:50 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n5BCZn5g012043
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 11 Jun 2009 12:35:49 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n5BCZnjd012042;
	Thu, 11 Jun 2009 12:35:49 GMT
	(envelope-from nobody)
Message-Id: <200906111235.n5BCZnjd012042@www.freebsd.org>
Date: Thu, 11 Jun 2009 12:35:49 GMT
From: Jonathan McKeown <j.mckeown@ru.ac.za>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] jot(1) manpage and behaviour differ
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         135475
>Category:       docs
>Synopsis:       [patch] jot(1) manpage and behaviour differ
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 11 12:40:03 UTC 2009
>Closed-Date:    
>Last-Modified:  Sun Jun 24 20:57:52 UTC 2012
>Originator:     Jonathan McKeown
>Release:        7.1-RELEASE
>Organization:
>Environment:
FreeBSD vorkosigan.ru.ac.za 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan  1 14:37:25 UTC 2009     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
The way jot(1) defaults missing arguments doesn't match the behaviour described in the manpage, which states that with fewer than 3 arguments missing values are supplied from left to right.

In fact, with one or two arguments, the last (s which is step size or seed) defaults to 1 (or -1 if begin and end specify a descending range), and then omitted arguments are set to default starting with the leftmost until three arguments are available.

>How-To-Repeat:

>Fix:
I have attached a patch to the manpage.

>Release-Note:
>Audit-Trail:

From: Jonathan McKeown <j.mckeown@ru.ac.za>
To: bug-followup@freebsd.org,
 j.mckeown@ru.ac.za
Cc:  
Subject: Re: docs/135475: [patch] jot(1) manpage and behaviour differ
Date: Thu, 11 Jun 2009 15:03:35 +0200

 --Boundary-00=_nCQMKdGOK1vWC9O
 Content-Type: text/plain;
   charset="us-ascii"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 And here's the patch.
 
 --Boundary-00=_nCQMKdGOK1vWC9O
 Content-Type: text/plain;
   charset="iso 8859-15";
   name="jotdiff.txt"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename="jotdiff.txt"
 
 --- -	2009-06-11 14:24:58.324200084 +0200
 +++ jot.1	2009-06-11 14:12:28.000000000 +0200
 @@ -112,14 +112,15 @@
  If four are specified and the given and computed values of
  .Ar reps
  conflict, the lower value is used.
 -If fewer than three are specified, defaults are assigned
 -left to right, except for
 +If one or two are specified, defaults are assigned
 +starting with
  .Ar s ,
 -which assumes a default of 1 or -1 if both
 +which assumes a default of 1 (or -1 if
  .Ar begin
  and
  .Ar end
 -are given.
 +specify a descending range), and then working from the
 +leftmost omitted argument until three arguments are set.
  .Pp
  Defaults for the four arguments are, respectively,
  100, 1, 100, and 1, except that when random data are requested,
 
 --Boundary-00=_nCQMKdGOK1vWC9O--
Responsible-Changed-From-To: freebsd-doc->eadler 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Thu Feb 23 02:54:10 UTC 2012 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=135475 
Responsible-Changed-From-To: eadler->freebsd-bugs 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Sun Jun 24 20:57:52 UTC 2012 
Responsible-Changed-Why:  
not dealing with this for a while 

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