From 13ceb77f59f5d001ba3e71dff75340278d8a73a8 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sun, 3 Mar 2019 17:40:32 +0100 Subject: rwc: add -c to detect all file creations --- rwc.1 | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'rwc.1') 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. -- cgit 1.4.1