Bash autocomplete doesn't escape SPACE and doesn't mark directories in Ubuntu 11.4

假装没事ソ 提交于 2019-12-10 14:11:50

问题


I just upgraded to Ubuntu 11.4 and I'm having problems with Bash autocomplete

for example, if I want to cd to Calibre Library directory, when I type

cd Cal<TAB>

I get

cd Calibre Library CURSOR

the autocomplete just prints the file/directory name, without escaping the SPACE or any other non alphanumeric characters, and it doesn't mark directories, it is really annoying

I've looked through /etc/inputrc and even added

# append a '/' to show a dir is a dir
set mark-directories on
set mark-symlinked-directories on

but it doesn't help :(


回答1:


It is due to a conflict between bash-completion 1.3 and acroread. See http://forums.adobe.com/thread/745833 and https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/716008 . A workaround is removing /etc/bash_completion.d/acroread.sh, then execute . /etc/bash_completion.



来源:https://stackoverflow.com/questions/5852389/bash-autocomplete-doesnt-escape-space-and-doesnt-mark-directories-in-ubuntu-11

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!