Hint -
Kinda in a hurry, saw this on a drive-by, sorry it's not complete.
Probably use sed to fix whatever else within the for loop.
Code:
# Change input field separator from default space, restore when done
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
for SUBDIR in `ls -d1 */`
do
echo "Testing: $SUBDIR"
done
# cleanup
IFS=$SAVEIFS
Probably use sed to fix whatever else within the for loop.