This has the obvious issue that it assumes no entry has a newline character, but also POSIX recommends against use of `echo`, use `print -- '%s\n' "$foo"` instead<p><a href="https://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html" rel="nofollow">https://pubs.opengroup.org/onlinepubs/9699919799/utilities/e...</a><p>But, it's good to see people writing libraries for shell!