aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-05-19 18:51:02 +0200
committerDuncaen <mail@duncano.de>2017-05-19 18:51:02 +0200
commita05c8c6f08889b4f71792a859b2689dc99f67e39 (patch)
tree818f6ea245999de624ac0114c18ca886daf09e7a
parent28544362f0299fcb2f2d0257d2ea194070cb6d54 (diff)
downloadlobase-a05c8c6f08889b4f71792a859b2689dc99f67e39.tar.gz
usr.bin/jot: update to OPENBSD_6_1
-rw-r--r--usr.bin/jot/jot.147
1 files changed, 29 insertions, 18 deletions
diff --git a/usr.bin/jot/jot.1 b/usr.bin/jot/jot.1
index 628b07e..c82553e 100644
--- a/usr.bin/jot/jot.1
+++ b/usr.bin/jot/jot.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: jot.1,v 1.21 2016/07/17 04:15:25 tb Exp $
+.\" $OpenBSD: jot.1,v 1.23 2016/08/12 21:49:31 tb Exp $
.\" $NetBSD: jot.1,v 1.2 1994/11/14 20:27:36 jtc Exp $
.\"
.\" Copyright (c) 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)jot.1 8.1 (Berkeley) 6/6/93
.\"
-.Dd $Mdocdate: July 17 2016 $
+.Dd $Mdocdate: August 12 2016 $
.Dt JOT 1
.Os
.Sh NAME
@@ -101,28 +101,39 @@ conversion specification inside
in which case the data is inserted rather than appended.
.El
.Pp
-The last four arguments indicate, respectively,
-the maximum number of data, the lower bound, the upper bound,
-and the step size.
-While at least one of them must appear,
-any of the other three may be omitted, and
-will be considered as such if given as
-.Ql - .
-Any three of these arguments determines the fourth.
-If four are specified and the given and computed values of
+The last four arguments specify the length of the output sequence,
+its start and end points, and the step size.
+Any three of these arguments determine the fourth.
+If the given and computed values for
.Ar reps
conflict, the lower value is used.
-If fewer than three are specified, defaults are assigned
-left to right, except for
-.Ar s ,
-which assumes its default unless both
+.Pp
+Arguments can be omitted by specifying a
+.Ql - .
+The default values for
+.Ar reps ,
+.Ar begin ,
+.Ar end ,
+and
+.Ar s
+are 100, 1, 100, and 1, respectively.
+Omitted values are computed if possible or assume the default.
+A special case arises if only
.Ar begin
and
.Ar end
-are given.
+are specified:
+if
+.Ar begin
+is greater than
+.Ar end
+then
+.Ar s
+is set to \(mi1, otherwise it is set to 1;
+afterwards
+.Ar reps
+is computed.
.Pp
-Defaults for the four arguments are, respectively,
-100, 1, 100, and 1.
.Ar reps
is expected to be an unsigned integer,
and if given as zero is taken to be infinite.