Stephan,
You need to quote the argument to "echo", otherwise the whitespace
is collapsed by the shell.
For example:
echo "$(echo -e "1\n2\n3")"
On Tue, 2 Jan 2018, Stephan Beal wrote:
(this time back to the list)
On Tue, Jan 2, 2018 at 3:43 AM, Andy Bradford <[email protected]> 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
--
----- stephan beal
http://wanderinghorse.net/home/stephan/"Freedom is sloppy. But since tyranny's the
only guaranteed byproduct of those who insist on a perfect world, freedom will have to
do." -- Bigby Wolf
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users