IFS='\n'
for i in "$(IFS='\n' printf 'abc\nxyz\n123 456\n')"; do
echo "????"
echo "$i"
done
echo "output"
echo "${args[@]}"
The following outputs:
????
abc
xyz
123 456
output
How can I get the for loop to iterate for each line? Why is the IFS='\n' command not making it behave in this manner?