aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarstrom <john@ankarstrom.se>2021-07-03 15:23:17 +0200
committerJohn Ankarstrom <john@ankarstrom.se>2021-07-03 15:23:17 +0200
commita3c687478843b98cf7cb06d465933064e2dbabe1 (patch)
treea75ad524054e0be97b82bcf1894d6f83b2647b66
parentc939da849d2e047534bf21813ed09e08e754522d (diff)
downloadwhen-a3c687478843b98cf7cb06d465933064e2dbabe1.tar.gz
Update man page
-rw-r--r--watch.123
1 files changed, 11 insertions, 12 deletions
diff --git a/watch.1 b/watch.1
index 0f0d89b..a609547 100644
--- a/watch.1
+++ b/watch.1
@@ -4,33 +4,32 @@
.Sh NAME
.Nm watch
.Nd a simple file watcher
-.\"
+.
.Sh SYNPOSIS
.Nm watch
.Op Fl i
.Ar file ...
-.\"
+.
.Sh DESCRIPTION
+.Pp
.Nm watch
-is a simple OpenBSD program that watches any given
+is a simple program that watches any given
.Ar file
for changes.
When the file changes, its name (as specified in the arguments to
.Nm watch )
is printed on standard output.
-
+.Pp
If the
.Fl i
argument is provided, an initial such line is printed when the program
starts, before beginning to watch for changes.
-
-.Nm watch
-exits on SIGINT (C-c).
-.\"
+.
.Sh ERRORS
+.Pp
If one of the watched files is deleted, a message is printed on standard
error and the program exits with error code 1.
-
+.Pp
If a file is renamed, a notice is printed on standard error, but the
program keeps running.
.\"
@@ -44,9 +43,9 @@ done
$ alias each='xargs -L0 -I {}'
$ watch -i * | each cp {} /mnt/usb/
.Ed
-.\"
+.
.Sh AUTHORS
+.Pp
.Nm watch
is written by
-.An John Ankarström ,
-available {on the web|by e-mail} at john{.|@}ankarstrom.se.
+.An John Ankarström Aq Mt "john (at) ankarstrom.se" .