简体   繁体   English

使用ubuntu 12.04进行bash选项卡完成问题

[英]bash tab completion issues with ubuntu 12.04

I am having an issue with tab-completion that I am unable to solve. 我遇到了tab-completion的问题,我无法解决。 Specifically, whenever I try to tab-complete a directory, the completed directory name appears with a space following it instead of a forward slash to complete the rest. 具体来说,每当我尝试选项卡完成目录时,完成的目录名称后面会显示一个空格而不是正斜杠以完成其余的目录。 for example 例如

~$ python ~/sof

tab-completes to tab-completed to

~$ python ~/software<space>

Instead of 代替

~$ python ~/software/

Interestingly this does not happen with cd but with everything else it does. 有趣的是,这不会发生在cd而是与其他一切相关。

Apparently it is a known bug. 显然这是一个已知的错误。 Deleting /etc/bash_completion.d/acroread.sh solved the issue. 删除/etc/bash_completion.d/acroread.sh解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM