about summary refs log tree commit diff
path: root/rwc.1
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2019-03-03 17:40:32 +0100
committerLeah Neukirchen <leah@vuxu.org>2019-03-03 17:40:32 +0100
commit13ceb77f59f5d001ba3e71dff75340278d8a73a8 (patch)
treebd4ff5a04e453634ab8404968b00763f8d208f52 /rwc.1
parent0a1473ede9ee999ad23dd548c34518b8342fc928 (diff)
downloadrwc-13ceb77f59f5d001ba3e71dff75340278d8a73a8.tar.gz
rwc-13ceb77f59f5d001ba3e71dff75340278d8a73a8.tar.xz
rwc-13ceb77f59f5d001ba3e71dff75340278d8a73a8.zip
rwc: add -c to detect all file creations
Diffstat (limited to 'rwc.1')
-rw-r--r--rwc.120
1 files changed, 16 insertions, 4 deletions
diff --git a/rwc.1 b/rwc.1
index cfd7714..c793b0c 100644
--- a/rwc.1
+++ b/rwc.1
@@ -1,4 +1,4 @@
-.Dd May 19, 2017
+.Dd March 3, 2019
 .Dt RWC 1
 .Os
 .Sh NAME
@@ -6,7 +6,7 @@
 .Nd report when changed
 .Sh SYNOPSIS
 .Nm
-.Op Fl 0dep
+.Op Fl 0cdep
 .Op Ar path\ ...
 .Sh DESCRIPTION
 .Nm
@@ -29,6 +29,18 @@ The options are as follows:
 .It Fl 0
 Read input filenames seperated by NUL bytes.
 Likewise, output filenames seperated by NUL bytes.
+.It Fl c
+Detect all file creations, including
+.Xr open 2
+with
+.Dv O_CREAT ,
+.Xr mkdir 2 ,
+.Xr link 2 ,
+.Xr symlink 2 ,
+and
+.Xr bind 2 .
+This has the side-effect of printing files twice
+that are created and immediately changed after.
 .It Fl d
 Also detect file deletion.
 In this case, deleted files are prefixed by
@@ -59,6 +71,8 @@ Make a sound when a download is done:
 .Xr entr 1 ,
 .Xr inotifywatch 1 ,
 .Xr wendy 1
+.Sh AUTHORS
+.An Leah Neukirchen Aq Mt leah@vuxu.org
 .Sh CAVEATS
 .Nm
 is limited by some restrictions of
@@ -78,8 +92,6 @@ and also watching files which don't exist yet.
 .Pp
 Many tools like to create temporary files in their working directory,
 which may distort the output.
-.Sh AUTHORS
-.An Leah Neukirchen Aq Mt leah@vuxu.org
 .Sh LICENSE
 .Nm
 is in the public domain.