| Summary: | 'find' man page update | ||
|---|---|---|---|
| Product: | Documentation | Reporter: | Patrick Alken <pa59> |
| Component: | Books & Articles | Assignee: | Jens Schweikhardt <schweikh> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
Responsible Changed From-To: freebsd-doc->schweikh I will look at this. 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. State Changed From-To: patched->closed Committed to -STABLE. Thanks! |
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 \;.