I don't have any problems with that script on bash, zsh and sh, running on Arch Linux.
What system are you running? "\r" line ending was used in macOS, but AFAIK they now use "\n".
I don't have any problems with that script on bash, zsh and sh, running on Arch Linux.
What system are you running? "\r" line ending was used in macOS, but AFAIK they now use "\n".
