[Toybox] Trivial patch for find --help

Isaac Dunham ibid.ag at gmail.com
Fri Mar 28 23:13:58 PDT 2014


find: clarify and expand the help for find -type
-------------- next part --------------
diff --git a/toys/pending/find.c b/toys/pending/find.c
index ab17dec..58e554b 100644
--- a/toys/pending/find.c
+++ b/toys/pending/find.c
@@ -12,14 +12,18 @@ config FIND
   bool "find"
   default n
   help
-    usage: find [<dir>] [<options]
+    usage: find [DIR] [<options>]
 
     -name <pattern>    match pattern
-    -type [fcdl]       match file type
+    -type [bcdflps]    match file type
     !, -a, -o          not, and , or
     (, )               group expressions  
     -mtime [-+]n       match file modification time (to within 24 hours)
     \t\t               +=greater (older) than, -=less (younger) than
+
+    File types:
+    b  block device  d  directory     l  symlink  s  socket
+    c  char device   f  regular file  p  FIFO
 */
 
 /* To Do:


More information about the Toybox mailing list