IFS is used as word splitting characters but what exactly happens when IFS is null/empty. For instance , consider the input file abc.txt with contents
first line
second line
now , if I run
IFS='' # or IFS= or assume IFS is null
for word in $(cat abc.txt)
do
echo ${word}
done
Then the output is
first line
second line
notice , in output , two lines had been shown. Now , the question is why two lines are showing up instead of one? If no IFS is being used as word splitting character then I guess the output should be
first line second line
Shouldn't the output be in a single line only , since \n is also not a IFS at this moment?