/home/micha# apt-cache policy bash-completion
bash-completion:
Installiert: 1:1.3-1
Kandidat: 1:1.99-1
Versionstabelle:
1:1.99-1 0
500 http://debian.tu-bs.de/debian/ sid/main amd64 Packages
1:1.90-1 0
1 http://debian.tu-bs.de/debian/ experimental/main amd64 Packages
*** 1:1.3-1 0
100 /var/lib/dpkg/status
Version 1.99-1 and 1.90-1 of bash-completion are broken.
These two versions remove the conf-files in /etc/bash_completion.d without containing any files to populate the folder!
Do not upgrade bash-completion to 1.99-1!!!
bash-completion:
Installiert: 1:1.99-1
Kandidat: 1:1.99-1/etc/bash_completion.d# ls -l
insgesamt 268
-rw-r--r-- 1 root root 748 Feb 8 2011 apt-file
-rw-r--r-- 1 root root 1266 Jun 19 2009 apt-show-versions
-rw-r--r-- 1 root root 1736 Mär 11 2011 axi-cache
-rw-r--r-- 1 root root 1467 Jul 7 2011 bzr
-rw-r--r-- 1 root root 293 Jan 15 2011 debconf
-rw-r--r-- 1 root root 2210 Mär 30 2011 deborphan
-rw-r--r-- 1 root root 323 Jan 13 2008 desktop-file-validate
-rw-r--r-- 1 root root 1269 Mai 25 2011 devscripts.chdist
-rw-r--r-- 1 root root 707 Mai 25 2011 devscripts.pkgnames
-rw-r--r-- 1 root root 2384 Aug 12 2010 dkms
-rw-r--r-- 1 root root 1309 Okt 25 16:22 dput
-rw-r--r-- 1 root root 214 Jul 12 20:38 etckeeper
-rw-r--r-- 1 root root 56103 Jan 3 17:36 git
-rw-r--r-- 1 root root 11196 Mär 29 2011 grub
drwxr-xr-x 2 root root 4096 Jan 8 12:40 helpers
-rw-r--r-- 1 root root 713 Aug 25 2010 initramfs-tools
-rw-r--r-- 1 root root 902 Jul 13 21:41 inkscape
-rw-r--r-- 1 root root 736 Mai 7 2010 insserv
-rw-r--r-- 1 root root 5290 Apr 2 2011 libreoffice.sh
-rw-r--r-- 1 root root 2076 Jan 27 2010 m-a
-rw-r--r-- 1 root root 11648 Jul 24 12:30 mercurial
-rw-r--r-- 1 root root 785 Sep 22 04:37 pbuilder
-rw-r--r-- 1 root root 2996 Feb 11 2011 pmount
-rw-r--r-- 1 root root 1051 Jan 19 2011 pon
-rw-r--r-- 1 root root 7748 Dez 20 11:35 quilt
-rw-r--r-- 1 root root 3466 Mai 5 2011 rdiff-backup
-rw-r--r-- 1 root root 19833 Dez 18 21:25 reprepro
-rw-r--r-- 1 root root 24237 Nov 10 2009 stg
-rw-r--r-- 1 root root 39423 Mär 3 2011 subversion
-rw-r--r-- 1 root root 483 Mär 6 2011 unp
works fine here so far
greetz
devil
Did you reboot since upgrading?
It was not working for me, but i will retry! And let you know.
I am on 64-bit.
Edit: This is the output before the upgradels -l /etc/bash_completion.d/
insgesamt 1024
-rw-r--r-- 1 root root 1416 Feb 6 2011 abook
-rw-r--r-- 1 root root 1957 Feb 6 2011 ant
-rw-r--r-- 1 root root 476 Feb 6 2011 apache2ctl
-rw-r--r-- 1 root root 4547 Feb 6 2011 apt
-rw-r--r-- 1 root root 1687 Feb 6 2011 apt-build
-rw-r--r-- 1 root root 748 Jul 24 18:10 apt-file
-rw-r--r-- 1 root root 3166 Feb 6 2011 aptitude
-rw-r--r-- 1 root root 3279 Feb 6 2011 aspell
-rw-r--r-- 1 root root 2529 Feb 6 2011 autoconf
-rw-r--r-- 1 root root 1635 Feb 6 2011 automake
-rw-r--r-- 1 root root 441 Feb 6 2011 autorpm
-rw-r--r-- 1 root root 3178 Feb 6 2011 bash-builtins
-rw-r--r-- 1 root root 498 Feb 6 2011 bind-utils
-rw-r--r-- 1 root root 512 Feb 6 2011 bitkeeper
-rw-r--r-- 1 root root 1250 Feb 6 2011 bittorrent
-rw-r--r-- 1 root root 10450 Feb 6 2011 bluez
-rw-r--r-- 1 root root 1176 Feb 6 2011 brctl
-rw-r--r-- 1 root root 1159 Feb 6 2011 bzip2
-rw-r--r-- 1 root root 500 Feb 6 2011 cardctl
-rw-r--r-- 1 root root 2218 Feb 6 2011 cfengine
-rw-r--r-- 1 root root 980 Feb 6 2011 chkconfig
-rw-r--r-- 1 root root 715 Feb 6 2011 chsh
-rw-r--r-- 1 root root 656 Feb 6 2011 cksfv
-rw-r--r-- 1 root root 739 Feb 6 2011 clisp
-rw-r--r-- 1 root root 1114 Feb 6 2011 configure
-rw-r--r-- 1 root root 3149 Feb 6 2011 coreutils
-rw-r--r-- 1 root root 623 Feb 6 2011 cowsay
-rw-r--r-- 1 root root 1664 Feb 6 2011 cpan2dist
-rw-r--r-- 1 root root 3342 Feb 6 2011 cpio
-rw-r--r-- 1 root root 1437 Feb 6 2011 crontab
-rw-r--r-- 1 root root 3076 Feb 6 2011 cryptsetup
-rw-r--r-- 1 root root 372 Feb 6 2011 cups
-rw-r--r-- 1 root root 11734 Feb 6 2011 cvs
-rw-r--r-- 1 root root 1868 Feb 6 2011 cvsps
-rw-r--r-- 1 root root 1139 Nov 27 07:16 dconf-bash-completion.sh
-rw-r--r-- 1 root root 854 Feb 6 2011 dd
-rw-r--r-- 1 root root 293 Jul 29 12:39 debconf
-rw-r--r-- 1 root root 323 Nov 29 00:08 desktop-file-validate
-rw-r--r-- 1 root root 1269 Nov 16 03:58 devscripts.chdist
-rw-r--r-- 1 root root 707 Nov 16 03:58 devscripts.pkgnames
-rw-r--r-- 1 root root 704 Feb 6 2011 dhclient
-rw-r--r-- 1 root root 2014 Feb 6 2011 dict
-rw-r--r-- 1 root root 2384 Aug 12 2010 dkms
-rw-r--r-- 1 root root 7858 Feb 6 2011 dpkg
-rw-r--r-- 1 root root 810 Feb 6 2011 dselect
-rw-r--r-- 1 root root 4110 Feb 6 2011 dsniff
-rw-r--r-- 1 root root 1031 Feb 6 2011 dvd+rw-tools
-rw-r--r-- 1 root root 3667 Feb 6 2011 e2fsprogs
-rw-r--r-- 1 root root 4337 Feb 6 2011 findutils
-rw-r--r-- 1 root root 1446 Feb 6 2011 freeciv
-rw-r--r-- 1 root root 1098 Feb 6 2011 freerdp
-rw-r--r-- 1 root root 746 Feb 6 2011 fuse
-rw-r--r-- 1 root root 1578 Feb 6 2011 gcc
-rw-r--r-- 1 root root 693 Feb 6 2011 gcl
-rw-r--r-- 1 root root 1348 Feb 6 2011 gdb
-rw-r--r-- 1 root root 935 Nov 18 20:16 gdbus-bash-completion.sh
-rw-r--r-- 1 root root 6895 Dez 19 21:46 gem1.9.1
-rw-r--r-- 1 root root 3006 Feb 6 2011 genisoimage
-rw-r--r-- 1 root root 1355 Feb 6 2011 getent
-rw-r--r-- 1 root root 1285 Feb 6 2011 gkrellm
-rw-r--r-- 1 root root 1150 Feb 6 2011 gnatmake
-rw-r--r-- 1 root root 1374 Feb 6 2011 gpg
-rw-r--r-- 1 root root 1442 Feb 6 2011 gpg2
-rw-r--r-- 1 root root 11196 Nov 13 06:23 grub
-rw-r--r-- 1 root root 1930 Nov 18 20:16 gsettings-bash-completion.sh
-rw-r--r-- 1 root root 1321 Feb 6 2011 gzip
-rw-r--r-- 1 root root 3172 Feb 6 2011 heimdal
drwxr-xr-x 2 root root 4096 Jan 8 21:37 helpers
-rw-r--r-- 1 root root 1683 Feb 6 2011 hping2
-rw-r--r-- 1 root root 1075 Feb 6 2011 iconv
-rw-r--r-- 1 root root 629 Feb 6 2011 iftop
-rw-r--r-- 1 root root 596 Feb 6 2011 ifupdown
-rw-r--r-- 1 root root 19934 Feb 6 2011 imagemagick
-rw-r--r-- 1 root root 1358 Feb 6 2011 info
-rw-r--r-- 1 root root 713 Aug 25 2010 initramfs-tools
-rw-r--r-- 1 root root 902 Sep 1 10:42 inkscape
-rw-r--r-- 1 root root 736 Mär 19 2011 insserv
-rw-r--r-- 1 root root 6107 Feb 6 2011 ipmitool
-rw-r--r-- 1 root root 8798 Feb 6 2011 iproute2
-rw-r--r-- 1 root root 1292 Feb 6 2011 ipsec
-rw-r--r-- 1 root root 2384 Feb 6 2011 iptables
-rw-r--r-- 1 root root 1605 Feb 6 2011 ipv6calc
-rw-r--r-- 1 root root 417 Feb 6 2011 isql
-rw-r--r-- 1 root root 599 Feb 6 2011 jar
-rw-r--r-- 1 root root 14528 Feb 6 2011 java
-rw-r--r-- 1 root root 1215 Feb 6 2011 k3b
-rw-r--r-- 1 root root 755 Feb 6 2011 kldload
-rw-r--r-- 1 root root 2093 Feb 6 2011 larch
-rw-r--r-- 1 root root 2207 Feb 6 2011 ldapvi
-rw-r--r-- 1 root root 989 Feb 6 2011 lftp
-rw-r--r-- 1 root root 5290 Nov 22 23:49 libreoffice.sh
-rw-r--r-- 1 root root 1303 Feb 6 2011 lilo
-rw-r--r-- 1 root root 1103 Feb 6 2011 links
-rw-r--r-- 1 root root 5973 Feb 6 2011 lintian
-rw-r--r-- 1 root root 713 Feb 6 2011 lisp
-rw-r--r-- 1 root root 1465 Feb 6 2011 lrzip
-rw-r--r-- 1 root root 1503 Feb 6 2011 lsof
-rw-r--r-- 1 root root 23889 Feb 6 2011 lvm
-rw-r--r-- 1 root root 1200 Feb 6 2011 lzma
-rw-r--r-- 1 root root 1603 Feb 6 2011 lzop
-rw-r--r-- 1 root root 2076 Jun 29 2011 m-a
-rw-r--r-- 1 root root 10898 Feb 6 2011 mailman
-rw-r--r-- 1 root root 2590 Feb 6 2011 make
-rw-r--r-- 1 root root 2246 Feb 6 2011 man
-rw-r--r-- 1 root root 1099 Feb 6 2011 mc
-rw-r--r-- 1 root root 2477 Feb 6 2011 mcrypt
-rw-r--r-- 1 root root 4637 Feb 6 2011 mdadm
-rw-r--r-- 1 root root 870 Feb 6 2011 medusa
-rw-r--r-- 1 root root 1342 Feb 6 2011 minicom
-rw-r--r-- 1 root root 1301 Feb 6 2011 mkinitrd
-rw-r--r-- 1 root root 1428 Feb 6 2011 module-init-tools
-rw-r--r-- 1 root root 2589 Feb 6 2011 monodevelop
-rw-r--r-- 1 root root 4769 Feb 6 2011 mount
-rw-r--r-- 1 root root 10475 Feb 6 2011 mplayer
-rw-r--r-- 1 root root 1497 Feb 6 2011 msynctool
-rw-r--r-- 1 root root 2494 Feb 6 2011 munin-node
-rw-r--r-- 1 root root 4589 Feb 6 2011 mutt
-rw-r--r-- 1 root root 2222 Feb 6 2011 mysqladmin
-rw-r--r-- 1 root root 514 Feb 6 2011 ncftp
-rw-r--r-- 1 root root 3037 Feb 6 2011 net-tools
-rw-r--r-- 1 root root 1989 Feb 6 2011 nmap
-rw-r--r-- 1 root root 705 Feb 6 2011 ntpdate
-rw-r--r-- 1 root root 2093 Feb 6 2011 open-iscsi
-rw-r--r-- 1 root root 5324 Feb 6 2011 openldap
-rw-r--r-- 1 root root 10588 Feb 6 2011 openssl
-rw-r--r-- 1 root root 553 Dez 20 13:44 openvpn
-rw-r--r-- 1 root root 1576 Feb 6 2011 p4
-rw-r--r-- 1 root root 785 Dez 25 14:52 pbuilder
-rw-r--r-- 1 root root 3347 Feb 6 2011 perl
-rw-r--r-- 1 root root 440 Feb 6 2011 pine
-rw-r--r-- 1 root root 1543 Feb 6 2011 pkg-config
-rw-r--r-- 1 root root 589 Feb 6 2011 pkg_install
-rw-r--r-- 1 root root 534 Feb 6 2011 pkgtools
-rw-r--r-- 1 root root 879 Feb 6 2011 pm-utils
-rw-r--r-- 1 root root 1051 Jan 19 2011 pon
-rw-r--r-- 1 root root 1557 Feb 6 2011 portupgrade
-rw-r--r-- 1 root root 5117 Feb 6 2011 postfix
-rw-r--r-- 1 root root 4025 Feb 6 2011 postgresql
-rw-r--r-- 1 root root 2138 Feb 6 2011 povray
-rw-r--r-- 1 root root 915 Feb 6 2011 procps
-rw-r--r-- 1 root root 1240 Feb 6 2011 python
-rw-r--r-- 1 root root 487 Feb 6 2011 qdbus
-rw-r--r-- 1 root root 4369 Feb 6 2011 qemu
-rw-r--r-- 1 root root 7748 Dez 20 11:35 quilt
-rw-r--r-- 1 root root 5539 Feb 6 2011 quota-tools
-rw-r--r-- 1 root root 994 Feb 6 2011 rcs
-rw-r--r-- 1 root root 1586 Feb 6 2011 rdesktop
-rw-r--r-- 1 root root 4551 Feb 6 2011 reportbug
-rw-r--r-- 1 root root 544 Feb 6 2011 resolvconf
-rw-r--r-- 1 root root 921 Feb 6 2011 rfkill
-rw-r--r-- 1 root root 3004 Feb 6 2011 ri
-rw-r--r-- 1 root root 1115 Feb 6 2011 rpcdebug
-rw-r--r-- 1 root root 10454 Feb 6 2011 rpm
-rw-r--r-- 1 root root 632 Feb 6 2011 rpmcheck
-rw-r--r-- 1 root root 436 Feb 6 2011 rrdtool
-rw-r--r-- 1 root root 3538 Feb 6 2011 rsync
-rw-r--r-- 1 root root 972 Feb 6 2011 rtcwake
-rw-r--r-- 1 root root 6458 Feb 6 2011 samba
-rw-r--r-- 1 root root 769 Feb 6 2011 sbcl
-rw-r--r-- 1 root root 1438 Feb 6 2011 screen
-rw-r--r-- 1 root root 1353 Feb 6 2011 service
-rw-r--r-- 1 root root 906 Feb 6 2011 sh
-rw-r--r-- 1 root root 9887 Feb 6 2011 shadow
-rw-r--r-- 1 root root 1037 Feb 6 2011 sitecopy
-rw-r--r-- 1 root root 3528 Feb 6 2011 smartctl
-rw-r--r-- 1 root root 506 Feb 6 2011 snownews
-rw-r--r-- 1 root root 821 Feb 6 2011 sqlite3
-rw-r--r-- 1 root root 11988 Feb 6 2011 ssh
-rw-r--r-- 1 root root 729 Feb 6 2011 sshfs
-rw-r--r-- 1 root root 3060 Feb 6 2011 strace
-rw-r--r-- 1 root root 9075 Feb 6 2011 svk
-rw-r--r-- 1 root root 5746 Feb 6 2011 sysbench
-rw-r--r-- 1 root root 419 Feb 6 2011 sysctl
-rw-r--r-- 1 root root 3460 Feb 6 2011 sysv-rc
-rw-r--r-- 1 root root 1884 Feb 6 2011 tar
-rw-r--r-- 1 root root 683 Feb 6 2011 tcpdump
-rw-r--r-- 1 root root 571 Feb 6 2011 unace
-rw-r--r-- 1 root root 483 Mär 6 2011 unp
-rw-r--r-- 1 root root 709 Feb 6 2011 unrar
-rw-r--r-- 1 root root 2691 Feb 6 2011 update-alternatives
-rw-r--r-- 1 root root 1431 Feb 6 2011 util-linux
-rw-r--r-- 1 root root 4014 Feb 6 2011 vncviewer
-rw-r--r-- 1 root root 1244 Feb 6 2011 vpnc
-rw-r--r-- 1 root root 4733 Feb 6 2011 wireless-tools
-rw-r--r-- 1 root root 4533 Feb 6 2011 wodim
-rw-r--r-- 1 root root 1153 Feb 6 2011 wol
-rw-r--r-- 1 root root 760 Feb 6 2011 wtf
-rw-r--r-- 1 root root 1360 Feb 6 2011 wvdial
-rw-r--r-- 1 root root 448 Feb 6 2011 xhost
-rw-r--r-- 1 root root 7742 Feb 6 2011 xm
-rw-r--r-- 1 root root 1209 Feb 6 2011 xmllint
-rw-r--r-- 1 root root 769 Feb 6 2011 xmlwf
-rw-r--r-- 1 root root 648 Feb 6 2011 xmms
-rw-r--r-- 1 root root 588 Feb 6 2011 xmodmap
-rw-r--r-- 1 root root 1485 Feb 6 2011 xrandr
-rw-r--r-- 1 root root 746 Feb 6 2011 xrdb
-rw-r--r-- 1 root root 1207 Feb 6 2011 xsltproc
-rw-r--r-- 1 root root 2484 Feb 6 2011 xz
-rw-r--r-- 1 root root 874 Feb 6 2011 yp-tools
-rw-r--r-- 1 root root 450 Feb 6 2011 yum-arch
This afterls -l /etc/bash_completion.d/
insgesamt 108
-rw-r--r-- 1 root root 748 Jul 24 18:10 apt-file
-rw-r--r-- 1 root root 1139 Nov 27 07:16 dconf-bash-completion.sh
-rw-r--r-- 1 root root 293 Jul 29 12:39 debconf
-rw-r--r-- 1 root root 323 Nov 29 00:08 desktop-file-validate
-rw-r--r-- 1 root root 1269 Nov 16 03:58 devscripts.chdist
-rw-r--r-- 1 root root 707 Nov 16 03:58 devscripts.pkgnames
-rw-r--r-- 1 root root 2384 Aug 12 2010 dkms
-rw-r--r-- 1 root root 935 Nov 18 20:16 gdbus-bash-completion.sh
-rw-r--r-- 1 root root 6895 Dez 19 21:46 gem1.9.1
-rw-r--r-- 1 root root 11196 Nov 13 06:23 grub
-rw-r--r-- 1 root root 1930 Nov 18 20:16 gsettings-bash-completion.sh
drwxr-xr-x 2 root root 4096 Jan 8 21:36 helpers
-rw-r--r-- 1 root root 713 Aug 25 2010 initramfs-tools
-rw-r--r-- 1 root root 902 Sep 1 10:42 inkscape
-rw-r--r-- 1 root root 736 Mär 19 2011 insserv
-rw-r--r-- 1 root root 5290 Nov 22 23:49 libreoffice.sh
-rw-r--r-- 1 root root 2076 Jun 29 2011 m-a
-rw-r--r-- 1 root root 553 Dez 20 13:44 openvpn
-rw-r--r-- 1 root root 785 Dez 25 14:52 pbuilder
-rw-r--r-- 1 root root 1051 Jan 19 2011 pon
-rw-r--r-- 1 root root 7748 Dez 20 11:35 quilt
-rw-r--r-- 1 root root 483 Mär 6 2011 unp
After reboot it works only partial.
greetz
devil
Is there some new mechanics to get the full convenience of bash-completion back? This is from the changelog, which i do not fully understand
Quotebash-completion (1:1.99-1) unstable; urgency=low
* Uploading to unstable
* New upstream pre-2.x snapshot
- correctly list purgeable packages for dpkg --listfiles and dpkg
--purge (Closes: #647684)
- fix bash_completion paths in README (Closes: #647941)
- _known_hosts_real: Handle more than two hostnames per known hosts
line (Closes: #647352)
- _known_hosts_real: Support > 1 files per *KnownHostsFile line
(Closes: #650514)
-- David Paleino <dapal> Sun, 08 Jan 2012 00:29:16 +0100
bash-completion (1:1.90-1) experimental; urgency=low
* bash-completion 2 preview: dynamic loading of completions
- optionally fallback to generic file completion if _filedir
returns nothing (Closes: #619014, LP: #533985)
- various fixes (Closes: #622383)
- apt: add 'download' to subcommands (Closes: #625234, LP: #720541)
- aptitude: add 'versions' command (Closes: #604393)
- dpkg-query: use the 'dpkg' completion (Closes: #642526)
- lintian: remove --unpack-level (Closes: #623680)
- rrdtool: complete filenames after commands (Closes: #577933)
- provide profile.d hook for per user disabling of bash_completion
(Closes: #593835)
- mutt: support tildes when recursively sourcing muttrc files
(Closes: #615134)
- tar: improve tar *[cr]*f completions (Closes: #618734)
* More checks in update-bash-completion: avoid unnecessary
sourcing of completion if symlink already exists
* Add message for users before they report a bug (debian/bug-presubj),
I'm kind of fed-up with bugs caused by acroread.sh :/
* Removed patches merged upstream
* Drop trigger-based completion loading
* Standards-Version bump to 3.9.2, no changes needed
-- David Paleino <dapal> Thu, 03 Nov 2011 13:03:51 +0100
The files formerly located in /etc/bash_completion.d are in /usr/share/bash-completion now.
so these files merely been moved to a new location..thanks for the headsup devil. I saw that bash-completion still worked thoug for what I used it for.
How to get bash-completion back then?
There is a thread in the german part where agaida offers a solution:
http://forum.siduction.org/index.php?msg=15309#15309
He transferred/symlinked the completions in /usr/share/bash-completion/completions to /etc/bash_completion.d file for file.
He used this script to do this job:
for i in $(ls /usr/share/bash-completion/completions/*)
do
ln -s $i
done
This script is to build in /etc/bash_completions.d, make it executeable and let it run.
greets
ayla
The maintainer answered to a bug-report:
QuoteOk, I'll use a symlink. I totally forgot to drop /etc/bash_completion. Sorry
for the noise.
Bash maintainers: the new bash-completion location is
at /usr/share/bash-completion/bash_completion . Please update the files of your
package (bash.bashrc, but there may be others) to reflect the new location. TIA!
Basically two approaches work right now:
1.Symlinking
2.Changing the location in .bashrc
Lets wait how that works out...:(
Quote from: "michaaa62"The maintainer answered to a bug-report:QuoteOk, I'll use a symlink. I totally forgot to drop /etc/bash_completion. Sorry
for the noise.
Bash maintainers: the new bash-completion location is
at /usr/share/bash-completion/bash_completion . Please update the files of your
package (bash.bashrc, but there may be others) to reflect the new location. TIA!
Basically two approaches work right now:
1.Symlinking
2.Changing the location in .bashrc
Lets wait how that works out...:(
So would it be a good workaround to edit the location in .bashrc or creating /etc/bash_completion to the new location?
Either way work right now, but there seems to be no further indication how things might evolve. Better keep in mind what you changed to be ready in case bash-completion changes again.
With D-U today bash-completion 1.99-2 gets installed.
This symlinks /etc/bash_completion to -> /usr/share/bash-completion/bash_completion
As I understand this issue is now gone and this could be marked "solved" or?
This is the way to get the problem solved if you just upgrade bash-completion. The upgrade alone is not enough to make it fully working.
Quote from: aylaThere is a thread in the german part where agaida offers a solution:
http://forum.siduction.org/index.php?msg=15309#15309
He transferred/symlinked the completions in /usr/share/bash-completion/completions to /etc/bash_completion.d file for file.
He used this script to do this job:
for i in $(ls /usr/share/bash-completion/completions/*)
do
ln -s $i
done
This script is to build in /etc/bash_completions.d, make it executeable and let it run.
greets
ayla
But you could as well change the bash-completion reference in .bashrc for $USERs and root on your systems.
Anyway, lets mark it solved.
In the changelog of the new version, the maintainer says:
Make /etc/bash_completion a symlink to the new location, waiting
for bash to update its scripts (Closes: #648319)
So, bash scripts need to be updated as well.
greetz
devil
for i in $(ls /usr/share/bash-completion/completions/*)
The usage of the command 'ls' is superfluous.
http://mywiki.wooledge.org/BashPitfalls#for_i_in_.24.28ls_.2A.mp3.29
The easyest way would be edit /etc/bash.bashrc and ~/.bashrc to the following:
# enable bash completion in interactive shells
if [ -f /usr/share/bash-completion/bash_completion ] && ! shopt -oq posix; then
. /usr/share/bash-completion/bash_completion
fi