I'm trying to get a list of directory names in i.  For example,
for i in `ls`
do
However, ls accesses a directory which contains multi-word directories, people's names, John Doe.  If I just use `ls`, then a two word name becomes two values for i.  If I use "`ls`", I get one long string of all the names in i.  I tried using "ls -1" to force one line per entry but that didn't work either.  Is there a solution?
 
    