See following example with bash-4.3.11: [STEP 101] $ mkdir -p "foo's dir/dir1/dir2" [STEP 102] $ complete -d cd [STEP 103] $ cd <TAB> [STEP 103] $ cd foo\'s\ dir/<TAB>
The 1st <TAB> worked fine but the 2nd failed to work. Bash 4.2.47 and 4.1.9 behaved the same. -clark