summaryrefslogtreecommitdiffstats
path: root/usr.bin/jot/jot.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/jot/jot.c')
-rw-r--r--usr.bin/jot/jot.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/jot/jot.c b/usr.bin/jot/jot.c
index d7f700c..f403bcc 100644
--- a/usr.bin/jot/jot.c
+++ b/usr.bin/jot/jot.c
@@ -193,10 +193,13 @@ main(int argc, char **argv)
case HAVE_ENDER | HAVE_STEP:
case HAVE_BEGIN:
case HAVE_BEGIN | HAVE_STEP:
- case HAVE_BEGIN | HAVE_ENDER:
reps = REPS_DEF;
mask |= HAVE_REPS;
break;
+ case HAVE_BEGIN | HAVE_ENDER:
+ s = ender > begin ? 1 : -1;
+ mask |= HAVE_STEP;
+ break;
case HAVE_BEGIN | HAVE_ENDER | HAVE_STEP:
if (randomize)
reps = REPS_DEF;
OpenPOWER on IntegriCloud