5 ms·
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"` inste
by stephenr 3y ago
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
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html https://pubs.opengroup.org/onlinepubs/9699919799/utilities/e...
But, it's good to see people writing libraries for shell!