Every 4096th character is lost in the terminal output
It's most likely an off-by-one error somewhere. Spent a short time trying to debug it but couldn't find out exactly where it happens. That's why I'm filing this issue under this repo.
Reproduction:
$ echo $repeat(0123456789ABCDEF 512)