|author||Tom Ryder <email@example.com>||2018-01-15 09:15:48 +1300|
|committer||Tom Ryder <firstname.lastname@example.org>||2018-01-15 09:17:05 +1300|
|parent||Reimplement bl(1df) in Awk (diff)|
Refactor clog(1df), allow args and non-term stdin
This makes a bit clearer how awkward the rlwrap(1) code is, too. It may not be worth keeping it.
Diffstat (limited to 'man')
1 files changed, 15 insertions, 5 deletions
diff --git a/man/man1/clog.1df b/man/man1/clog.1df
index 43193076..f9300347 100644
@@ -3,18 +3,28 @@
\- record timestamped logs in a file
-getting real tired of all this overengineering
+Getting real tired of all this overengineering.
-receives a message on stdin, timestamps it with a leading date(1), and writes
-it to the file with path in environment variable CLOG, defaulting to ~/.clog,
-terminating each entry with two hyphens.
+receives a message on stdin or from the file arguments, timestamps it with a
+leading date(1), and writes it to the file with path in environment variable
+CLOG, defaulting to ~/.clog, terminating each entry with two hyphens.
-If rlwrap(1) is found, it will be used for the line editing. If not, just the
+If there are no files to read and standard input is coming from a terminal, and
+rlwrap(1) is found, it will be used for the line editing. If not, just the
terminal's cooked mode will be used.
Tom Ryder <email@example.com>