After renaming a file to a similar name, I noticed TAB was still completing the old filename (if it matched the letters so far) and not showing the new one. No matter how many letters I typed, it refused to complete the new name.
I fixed it simply by starting a new shell. All good, but I'm still curious about what happened.
I assume Bash is caching the file strings somewhere and the cache had failed to refresh/clear itself when the file had been renamed. Is my assumption correct, and if so, how could the cache be auto-refreshed?