fish-shell/fish-shell — pull request #1654 by kballard (2014-08-29 01:29:34+00:00)
Title: Trim trailing newline on cmdsubst when IFS=''

When $IFS is empty, command substitution no longer splits on newlines.
However we still want to trim off a single trailing newline, as most
commands will emit a trailing newline and it makes it harder to work
with their output.