From 68c682bc1f6d62f1c25ff015e7611f847c981d54 Mon Sep 17 00:00:00 2001
From: Young Mo Kang <kym327@gmail.com>
Date: Sun, 28 Feb 2016 14:08:57 -0500
Subject: [PATCH 2/7] doc: add description on -type multi arg support

* find/find.l: Add description that -type now has multiple argument
support. Also add one example.
* doc/find.texi: Add the same description above.
* README-hacking: corrected a few misspelled words.
---
 README-hacking |  6 +++---
 doc/find.texi  |  4 ++++
 find/find.1    | 16 ++++++++++++++++
 3 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/README-hacking b/README-hacking
index 12de1bb..280a8f0 100644
--- a/README-hacking
+++ b/README-hacking
@@ -18,7 +18,7 @@ Prerequisites
  * GNU gettext
  * GNU Dejagnu
 
-Dejagnu is in fact optional, but it's strongly recommened, since it is
+Dejagnu is in fact optional, but it's strongly recommended, since it is
 needed to run findutils' test suite (which is how you know that find
 works once it is built on your system).
 
@@ -106,10 +106,10 @@ MAX_PROC_MAX.
 --- example ends ---
 
 There are several things to notice about this checkin message.  Most
-importatly, it begins with a single line summary of the whole change.
+importantly, it begins with a single line summary of the whole change.
 This needs to be short.  It would be used as the subject line of
 patches mailed by "git send-email".  Some people begin that line with
-a one-word tag indicating what is addected (for example find: for
+a one-word tag indicating what is affected (for example find: for
 changes to find, doc: to changes to the documentation, maint: for
 changes to the maintainer automation and so forth).
 
diff --git a/doc/find.texi b/doc/find.texi
index fdeaefa..9e9ec63 100644
--- a/doc/find.texi
+++ b/doc/find.texi
@@ -1081,6 +1081,10 @@ socket
 @item D
 door (Solaris)
 @end table
+
+Multiple file types can be provided as a combined list without commas and
+will be interpreted with '-o' in between. For example, '-type fld' is
+interpreted as '( -type f -o -type l -o -type d )'.
 @end deffn
 
 @deffn Test -xtype c
diff --git a/find/find.1 b/find/find.1
index cb2ff19..02c85f0 100644
--- a/find/find.1
+++ b/find/find.1
@@ -954,6 +954,9 @@ socket
 .IP D
 door (Solaris)
 .RE
+.IP
+To search for more than one type, you can supply the combined list of
+type letters without commas.
 .IP "\-uid \fIn\fR"
 File's numeric user ID is \fIn\fR.
 
@@ -2087,6 +2090,19 @@ discovered (for example we do not search project3/src because we
 already found project3/.svn), but ensures sibling directories
 (project2 and project3) are found.
 
+.P
+.nf
+.B find /tmp -type fdl
+.fi
+
+Search for any files, links, and directories in the directory
+.B /tmp
+, which is equivalent to
+
+.nf
+.B find /tmep \e( -type f -o -type l -o -type d \e)
+.fi
+
 .SH EXIT STATUS
 .PP
 .B find
-- 
2.7.0

