aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--man/man1/cfr.1df5
1 files changed, 3 insertions, 2 deletions
diff --git a/man/man1/cfr.1df b/man/man1/cfr.1df
index 2ec636bf..bd56f6eb 100644
--- a/man/man1/cfr.1df
+++ b/man/man1/cfr.1df
@@ -19,10 +19,11 @@ not follow symbolic links.
.SH NOTES
You might think this would be better; it's certainly faster:
.P
- $ find . | wc -l
+ $ find . -mindepth 1 -print | wc -l
.P
However, it's subtly wrong; it will double-count anything with a path that
-contains a newline!
+contains a newline! You could use -print0 and count null characters instead,
+but then you've broken POSIX already.
.P
cfr(1df) and cf(1df) are POSIX-fearing as far as I can tell (please correct
me), but there are faster but less compatible ways to do this, while still