On Tue, 02 Jan 2018 04:33:56 +0100, Stephan Beal <sgb...@googlemail.com> wrote:

(this time back to the list)
On Tue, Jan 2, 2018 at 3:43 AM, Andy Bradford <amb-fos...@bradfords.org>
wrote:

Thus said Stephan Beal on Tue, 02 Jan 2018 03:07:20 +0100:

> That will  still strip  any newlines from  his input,  though, because
> that's how $(...) works.

It actually only strips the trailing newline. Any newlines in the middle
of the file are fine.


That's not what i'm seeing:

[stephan@host:~]$ echo -e "1\n2\n3"
1
2
3
[stephan@host:~]$ echo $(echo -e "1\n2\n3")
1 2 3

you would need echo "$(echo -e "1\n2\n3")" here to protect the embedded newlines in the outer echo's output.... command expansion does not mess with the newlines, really. as andy said, it strips only trailing ones.





--
Using Opera's revolutionary email client: http://www.opera.com/mail/
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to