From 5c8754abbe64c716f6c6679f340f93f9a2f10a03 Mon Sep 17 00:00:00 2001 From: Tristan Riehs Date: Thu, 8 Feb 2024 17:40:29 +0100 Subject: man page updated -p and -u flags integrated --- rpt.1.in | 40 ++++++++++++++++++++++++++++++++++------ 1 file changed, 34 insertions(+), 6 deletions(-) diff --git a/rpt.1.in b/rpt.1.in index 6bb4cbb..22620a5 100644 --- a/rpt.1.in +++ b/rpt.1.in @@ -13,16 +13,17 @@ repeat \- repeat a shell command .I COUNT ] [ .B \-f +| +.B \-u +] [ +.B \-p ] .I COMMAND .B rpt [ .B \-h -] - -.B rpt -[ +| .B \-v ] @@ -37,12 +38,12 @@ it is given to .SH OPTIONS .TP .B \-h -Display help. +Display help and exit. .PP .TP .B \-v -Display version. +Display version and exit. .PP .TP @@ -68,6 +69,33 @@ If the flag is set, .B rpt ignores errors. +Icompatible with the +.B \-u +flag. +.PP + +.TP +.B \-u +Repeat +.I COMMAND +until it fails. +Incompatible with the +.B \-f +flag. +Giving this option is equivalent to specifying +.B \-n +.IR LONG_MAX , +where +.I LONG_MAX +is the maximum value a C99 +.B long int +can hold, provided as a macro by +.BR limits.h (0p). +Therefore, the +.B \-u +and the +.B \-n +option suppress each other behavior. .PP .SH "EXIT STATUS" -- cgit v1.2.3