In bash, newline characters are preserved through command substitution:
$ TEST="$(echo 'a
b
c
')" && echo "$TEST"
# →
a
b
c
However, when I try to do the same in fish shell, the newline characters get converted into spaces:
$ set TEST (echo "a
b
c
"); and echo "$TEST"
# →
a b c
How to make fish save the newline characters as newlines?