diff --git a/Sc2044.md b/Sc2044.md index 689490c..d0d8d44 100644 --- a/Sc2044.md +++ b/Sc2044.md @@ -1,3 +1,5 @@ +## For loops over find output are fragile. Use find -exec or a while read loop. + It is difficult to correctly use "find" in a for loop, because filenames can contain bytes such as newlines and "*". Where practical, consider using find's "-exec" like this: find . -exec COMMAND... {} \;