Help/Feedback/OK schwarze@, tb@
-.\" $OpenBSD: jot.1,v 1.24 2021/08/13 07:59:04 martijn Exp $
+.\" $OpenBSD: jot.1,v 1.25 2021/08/13 11:27:33 martijn Exp $
.\" $NetBSD: jot.1,v 1.2 1994/11/14 20:27:36 jtc Exp $
.\"
.\" Copyright (c) 1993
Just print
.Ar word
repetitively.
+Overrides earlier
+.Fl b ,
+.Fl c ,
+and
+.Fl w .
.It Fl c
This is an abbreviation for
.Fl w Ic %c .
+Overrides earlier
+.Fl b
+and
+.Fl w .
.It Fl n
Do not print the final newline normally appended to the output.
.It Fl p Ar precision
conversion specification inside
.Ar word ,
in which case the data is inserted rather than appended.
+Overrides earlier
+.Fl b ,
+.Fl c ,
+and
+.Fl w .
.El
.Pp
The last four arguments specify the length of the output sequence,
-/* $OpenBSD: jot.c,v 1.54 2021/08/13 10:45:26 tb Exp $ */
+/* $OpenBSD: jot.c,v 1.55 2021/08/13 11:27:33 martijn Exp $ */
/* $NetBSD: jot.c,v 1.3 1994/12/02 20:29:43 pk Exp $ */
/*-
static bool longdata;
static bool nosign;
static bool randomize;
+static bool word;
static void getformat(void);
static int getprec(char *);
switch (ch) {
case 'b':
boring = true;
+ chardata = word = false;
format = optarg;
break;
case 'c':
chardata = true;
+ boring = word = false;
+ format = "";
break;
case 'n':
finalnl = false;
sepstring = optarg;
break;
case 'w':
+ word = true;
+ boring = chardata = false;
format = optarg;
break;
default: