After completing a directory with an apostrophe in its name, tab completion no longer works. Reproducible: Always Steps to Reproduce: 1. mkdir foobar 2. touch some.gif 3. display foo<TAB><TAB> 4. Note correct completion of "foobar/some.gif" 5. mv foobar "foo'bar" 6. display foo<TAB><TAB> Actual Results: The first <TAB> completes to "foo'bar/" but subsequent tabbing does nothing Expected Results: The second <TAB> should result in the string "foo'bar/some.gif" I don't know if it's relevant, but my bash version is 3.2_p17
This is fixed in Ubuntu. Their bug is https://bugs.launchpad.net/ubuntu/+source/bash/+bug/123665
This bug still exists in bash-completion-20060301.
This is a bug in bash itself. $ touch "1'1 1" "1'2 2" $ compgen -f 1\' 1'2 2 1'1 1 $ compgen -f 1\'1 $ echo $? 1 Ubuntu did a workaround in bash-completion but didn't fix bash' bug.
seems to be fixed in latest stable bash-4.1