Summary: | find . -name "$mask1" -or -name "$mask2" works incorrectly with -print, -printf and -print0 | ||
---|---|---|---|
Product: | Sisyphus | Reporter: | evseev <evseev> |
Component: | findutils | Assignee: | placeholder <placeholder> |
Status: | CLOSED NOTABUG | QA Contact: | qa-sisyphus |
Severity: | normal | ||
Priority: | P2 | CC: | glebfm, ldv, placeholder |
Version: | unstable | ||
Hardware: | all | ||
OS: | Linux |
Description
evseev
2005-09-11 02:18:48 MSD
The 3rd case is equivalent of find /path/to/source -name "*.h" -or "(" -name "*.c" -print ")" you probably want to use find /path/to/source "(" -name "*.h" -or -name "*.c" ")" -print |