Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/jot Don't require any arguments as the usage indicat...



details:   https://anonhg.NetBSD.org/src/rev/efb322019d8e
branches:  trunk
changeset: 320185:efb322019d8e
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Jun 25 14:29:17 2018 +0000

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

diffstat:

 usr.bin/jot/jot.1 |  7 +++----
 usr.bin/jot/jot.c |  6 ++----
 2 files changed, 5 insertions(+), 8 deletions(-)

diffs (56 lines):

diff -r 6b7c380bc7f8 -r efb322019d8e usr.bin/jot/jot.1
--- a/usr.bin/jot/jot.1 Mon Jun 25 13:28:12 2018 +0000
+++ b/usr.bin/jot/jot.1 Mon Jun 25 14:29:17 2018 +0000
@@ -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 @@
 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.
diff -r 6b7c380bc7f8 -r efb322019d8e usr.bin/jot/jot.c
--- a/usr.bin/jot/jot.c Mon Jun 25 13:28:12 2018 +0000
+++ b/usr.bin/jot/jot.c Mon Jun 25 14:29:17 2018 +0000
@@ -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 @@
 #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 @@
                                    argv[0]);
                        have |= REPS;
                }
-               break;
        case 0:
-               usage();
                break;
        default:
                errx(EXIT_FAILURE,



Home | Main Index | Thread Index | Old Index