aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rpt.114
-rw-r--r--rpt.c2
2 files changed, 12 insertions, 4 deletions
diff --git a/rpt.1 b/rpt.1
index e906855..1e0e4ef 100644
--- a/rpt.1
+++ b/rpt.1
@@ -36,6 +36,7 @@ rpt \- repeat a shell command
.SH DESCRIPTION
.B rpt
allows you to easily repeat a command a certain number of times.
+The command is repeated sequentially.
.SH OPTIONS
.BR \-h ,
@@ -77,6 +78,12 @@ flag is set,
ignores errors.
.SH "EXIT STATUS"
+When a subprocess exit abnormally and the
+.B force
+flag is not given,
+.B rpt
+exits with the same status as the subprocess.
+
1. Invalid option.
2. Error while reading
@@ -92,15 +99,16 @@ is missing.
.I COMMAND
not provided.
+4. Other error.
+
.SH FILES
None.
.SH "SEE ALSO"
.BR seq (1)
+.BR test (1)
.SH BUGS
-Please report bugs at
-.IR https://gitlab.com/tristanriehs/repeat .
.SH AUTHOR
-Tristan Riehs <tristanriehs@gmail.com>
+Tristan Riehs <tristan.riehs@bordeaux-inp.fr>
diff --git a/rpt.c b/rpt.c
index 6642491..ce3260c 100644
--- a/rpt.c
+++ b/rpt.c
@@ -10,7 +10,7 @@
#include <sys/wait.h>
#include <unistd.h>
-#define VERSION "1.0.0"
+#define VERSION "1.1.1"
/* Size of the buffer used to clone stdin. */
#define BUFSIZE 8000