Comment Comment by chuckadams Agreed when it comes to ls, but this applies to any script whose output you capture. I personally prefer “while read” loops but I’m probably screwed if someone smuggles in a newline. parent chuckadams 2 years ago