Find is not needed with your example, but it still gets the job done of demonstrating a safe way to use find to populate an array +1. One note is that not all version of find support -print0.
–
jordanmOct 4 '12 at 6:07

You are right. Given the lack of detail around the actual problem, I thought it better to direct the OP to the Wooledge Wiki for a more thorough explanation.
–
jasonwryanOct 4 '12 at 6:11

As a regular on the #bash IRC channel whose members maintain that wiki, I agree.
–
jordanmOct 4 '12 at 6:13