Bug 54667

Summary: 'find' man page update
Product: Documentation Reporter: Patrick Alken <pa59>
Component: Books & ArticlesAssignee: Jens Schweikhardt <schweikh>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Patrick Alken 2003-07-20 18:40:16 UTC
  The find man page does not have adequate documentation for the -exec
feature. It tells you that the syntax is:

 -exec utility [argument ...];

However, it is necessary to escape the ; and also put a space between
the last character of the command and the escaped semicolon.

Example:

find . -name "*" -exec echo {};

seems to conform to the above syntax rules, however the correct command
is:

find . -name "*" -exec echo {} \;

The "\" is crucial, and so is the space between the {} and the \;.
Comment 1 Jens Schweikhardt freebsd_committer freebsd_triage 2003-07-25 17:51:52 UTC
Responsible Changed
From-To: freebsd-doc->schweikh

I will look at this.
Comment 2 Jens Schweikhardt freebsd_committer freebsd_triage 2003-07-25 18:32:57 UTC
State Changed
From-To: open->patched

5-CURRENT already has the space before the semicolon. 
I added a sentence about shells where you may need to quote 
the semicolon. Thanks for paying attention to detail! 
MFC in 3 days.
Comment 3 Jens Schweikhardt freebsd_committer freebsd_triage 2003-07-28 17:48:16 UTC
State Changed
From-To: patched->closed

Committed to -STABLE. Thanks!