krebs / array

a POSIX-compliant implementation of arrays, once in 17 lines of shell. Archived

Home Page:https://github.com/krebs/array

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

echo "$i" should be changed to printf '%s\n' "$i"

charles-dyfis-net opened this issue · comments

Otherwise, shells may legally silently consume literal backslashes, treating them as escape sequence components.

See the APPLICATION USAGE section of http://pubs.opengroup.org/onlinepubs/009695399/utilities/echo.html

commented

Good catch!