Filenames and Pathnames in Shell: How to do it correctly

A pretty interesting writeup. A must-read if you don't know how to handle filenames with control characters (eg. newline) in them correctly. David wrote another (even longer Smile ) article on how to fix the problem of handling filenames by changing standards, operating systems and/or tools.

My choice from the proposed solutions is this one:
find . -print0 | while IFS="" read -r -d "" file; do
  COMMAND "$file"
done