From 01c6880f7e754d0116f38410dec5c30e0077c5cf Mon Sep 17 00:00:00 2001 From: koalaman Date: Thu, 8 May 2014 19:38:18 -0700 Subject: [PATCH] Updated Sc2044 (markdown) --- Sc2044.md | 2 ++ 1 file changed, 2 insertions(+) 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... {} \;