rush wrote: > 2012/1/11, Jonathan Nieder <jrnie...@gmail.com>: >> I don't follow. Isn't COMPAT_DIR _supposed_ to point to >> /etc/bash_completion.d? Which completion is not working? > > If I specify /etc/bash_completion.d in this variable noone from > /usr/share/bash-completion/completions/ will work. I tested on ssh, > ip, apt-get, aptitude and others (nothing happens on TAB [[only dirs > suggested for completion]]).
Ah, I see. Good catch --- it's due to this line: [[ $BASH_SOURCE == */* ]] && compdir="${BASH_SOURCE%/*}/completions" Probably something like local compscript=$(readlink -f "$BASH_SOURCE") [[ $compscript == */* ]] && compdir="${compscript%/*}/completions" in its place would do the trick. Thanks for finding it. Sincerely, Jonathan -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org