Never parse ls.

http://mywiki.wooledge.org/ParsingLs

It's about the only thing I really know about bash.