Module Name:    src
Committed By:   christos
Date:           Mon Jun 25 14:29:17 UTC 2018

Modified Files:
        src/usr.bin/jot: jot.1 jot.c

Log Message:
Don't require any arguments as the usage indicates; simplifies the code
and the documentation: now "jot" works like "jot -" used to (and continues
to). From Ingo Schwarze


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/usr.bin/jot/jot.1
cvs rdiff -u -r1.25 -r1.26 src/usr.bin/jot/jot.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/jot/jot.1
diff -u src/usr.bin/jot/jot.1:1.15 src/usr.bin/jot/jot.1:1.16
--- src/usr.bin/jot/jot.1:1.15	Mon Jul  3 17:34:19 2017
+++ src/usr.bin/jot/jot.1	Mon Jun 25 10:29:17 2018
@@ -1,4 +1,4 @@
-.\"	$NetBSD: jot.1,v 1.15 2017/07/03 21:34:19 wiz Exp $
+.\"	$NetBSD: jot.1,v 1.16 2018/06/25 14:29:17 christos Exp $
 .\"
 .\" Copyright (c) 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"	@(#)jot.1	8.1 (Berkeley) 6/6/93
 .\"
-.Dd January 5, 2016
+.Dd June 25, 2018
 .Dt JOT 1
 .Os
 .Sh NAME
@@ -104,8 +104,7 @@ in which case the data are inserted rath
 The last four arguments indicate, respectively,
 the number of data, the lower bound, the upper bound,
 and the step size or, for random data, the seed.
-While at least one of them must appear,
-any of the other three may be omitted, and
+Any argument may be omitted, and
 will be considered as such if given as
 .Dq - .
 Any three of these arguments determines the fourth.

Index: src/usr.bin/jot/jot.c
diff -u src/usr.bin/jot/jot.c:1.25 src/usr.bin/jot/jot.c:1.26
--- src/usr.bin/jot/jot.c:1.25	Sun Apr 12 07:19:18 2009
+++ src/usr.bin/jot/jot.c	Mon Jun 25 10:29:17 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: jot.c,v 1.25 2009/04/12 11:19:18 lukem Exp $	*/
+/*	$NetBSD: jot.c,v 1.26 2018/06/25 14:29:17 christos Exp $	*/
 
 /*-
  * Copyright (c) 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1993\
 #if 0
 static char sccsid[] = "@(#)jot.c	8.1 (Berkeley) 6/6/93";
 #endif
-__RCSID("$NetBSD: jot.c,v 1.25 2009/04/12 11:19:18 lukem Exp $");
+__RCSID("$NetBSD: jot.c,v 1.26 2018/06/25 14:29:17 christos Exp $");
 #endif /* not lint */
 
 /*
@@ -216,9 +216,7 @@ getargs(int argc, char *argv[])
 				    argv[0]);
 			have |= REPS;
 		}
-		break;
 	case 0:
-		usage();
 		break;
 	default:
 		errx(EXIT_FAILURE,

Reply via email to