If I have the folder ~/1234567 and I type one of the following:
ls ~/123 cd ~/12
then press tab, everything's groovy. But if, on either of those commands, I type 1234 before hitting tab, the 4th char is replaced with / and editing text becomes strange; if I hit return it's as if anything after ~ is ignored. This is repeatable in different locations in the filesystem, and does not depend on which other files/folders are at that location.
This works as expected on bash on the same box. I'm using rhel6.9, and version "93u+ 2012-08-01" of ksh.
I only have this problem if I use ~ and I don't have it if I use the ~username form; just ~/xxxx.