mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated Sc2044 (markdown)
@@ -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... {} \;
|
||||
|
Reference in New Issue
Block a user