tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: jot: producing too much output?
As an extra bonus, the appended patch causes jot to generate what
you're expecting. I'm not going to apply it however, without someone
who knows what jot is really intended to do in this situation indicates
that it is a reasonable thing to have happen (in which case it would also
need a man page update).
kre
Index: jot.c
===================================================================
RCS file: /cvsroot/src/usr.bin/jot/jot.c,v
retrieving revision 1.28
diff -u -r1.28 jot.c
--- jot.c 14 Jun 2020 01:26:46 -0000 1.28
+++ jot.c 5 Jan 2023 16:04:33 -0000
@@ -270,6 +270,9 @@
begin = ender - reps * step + step;
break;
+ case BEGIN | ENDER:
+ reps = fabs(ender - begin);
+ /* FALLTHROUGH */
case REPS | BEGIN | ENDER:
/* Calculate step */
if (reps == 0)
Home |
Main Index |
Thread Index |
Old Index