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
Good catch!