在使用某些软件时,在输入如:--prefix=/some-path<tab>之后就会变为 /some-path,前面的--prefix=消失了!!!...
也就是说只要在符号'='后按tab补全时,=前面的字符就会消失。
具体的操作在附件有个gif文件。
猜想:
我认为是bash-completion的设置问题,但是今天琢磨了一下午没有结果。
然后我把.bashrc中下面的:
代码: 全选
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
这不是一个好的解决办法,希望大家可以帮忙看下。
谢谢大家!

=========================
下面是我的系统信息,希望有帮助:
我的系统是ubuntu 14.04 LTS,
内核信息如下:
代码: 全选
Linux ltk-Y430P 3.13.0-49-generic #83-Ubuntu SMP Fri Apr 10 20:11:33 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
代码: 全选
Package: bash-completion
Status: install ok installed
Priority: standard
Section: shells
Installed-Size: 929
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: all
Multi-Arch: foreign
Version: 1:2.1-4
Replaces: bash, cryptsetup (<< 2:1.1.2-2), xen-tools (<= 4.1-1)
Depends: bash (>= 3.2)
Pre-Depends: dpkg (>= 1.15.7.2~)
Breaks: xen-tools (<= 4.1-1)
Conffiles:
/etc/profile.d/bash_completion.sh 749e4786543bc3d19e20b0e214806c35
/etc/bash_completion a81b3f1cb197219b815942f4fc7fa94e
Description: programmable completion for the bash shell
bash completion extends bash's standard completion behavior to achieve
complex command lines with just a few keystrokes. This project was
conceived to produce programmable completion routines for the most
common Linux/UNIX commands, reducing the amount of typing sysadmins
and programmers need to do on a daily basis.
Original-Maintainer: Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>
Homepage: http://bash-completion.alioth.debian.org