about summary refs log tree commit diff
path: root/README
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-05-22 15:27:32 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-05-22 15:27:32 +0200
commitbd207274add1bd0f8d90e6944bd20cf20bdcfed1 (patch)
treef941e42935c04c85465db0f4dc64fa29f7d2eec8 /README
parent328f70c47e5dcf4eea650ffcc967310353b38d24 (diff)
downloadrwc-bd207274add1bd0f8d90e6944bd20cf20bdcfed1.tar.gz
rwc-bd207274add1bd0f8d90e6944bd20cf20bdcfed1.tar.xz
rwc-bd207274add1bd0f8d90e6944bd20cf20bdcfed1.zip
rwc: add -p to avoid writing into non-empty pipes
Diffstat (limited to 'README')
-rw-r--r--README8
1 files changed, 6 insertions, 2 deletions
diff --git a/README b/README
index b93d8f8..c693be7 100644
--- a/README
+++ b/README
@@ -4,7 +4,7 @@ NAME
      rwc – report when changed
 
 SYNOPSIS
-     rwc [-0d] [path ...]
+     rwc [-0dp] [path ...]
 
 DESCRIPTION
      rwc takes a list of files or directories, watches them using inotify(7),
@@ -22,13 +22,17 @@ DESCRIPTION
      -d      Also detect file deletion.  In this case, deleted files are
              prefixed by ‘- ’ (that is, a dash and a space).
 
+     -p      Pipe mode; don't report changes while the standard output pipe is
+             not empty.  Use this to pipe rwc to programs which read standard
+             input slowly.
+
 EXIT STATUS
      The rwc utility exits 0 on success, and >0 if an error occurs.
 
 EXAMPLES
      Watch all source files and run make(1) when something changes:
 
-           % git ls-files | rwc | xe -v -s make
+           % git ls-files | rwc -p | xe -v -s make
 
      Make a sound when a download is done: