I\'m curious as to why the backspace is necessary when setting IFS to split on newlines like this:
IFS=$(echo -en \"\\n\\b\")
Why can I not
Because as bash manual says regarding command substitution:
Bash performs the expansion by executing command and replacing the command substitution with the standard output of the command, with any trailing newlines deleted.
So, by adding \b you prevent removal of \n.
A cleaner way to do this could be to use $'' quoting, like this:
IFS=$'\n'