ls command output in single line

ls -1 | awk '{ ORS=" "; print; }'

or

printf "%s " *