bash_completion: fix bash 3.2 incompatibility
commit6f4f9c1b66ed859b3679d70e15c003ab4907b823
authorAndres P <aepd87@gmail.com>
Tue, 22 Jun 2010 02:30:44 +0000 (21 22:00 -0430)
committerAllan McRae <allan@archlinux.org>
Wed, 23 Jun 2010 03:32:21 +0000 (23 13:32 +1000)
tree883df5af577c55aea58ec2ccddda467db16fbaa6
parent07a9effdd06345d09f09cdc92e23c937d8fa94b5
bash_completion: fix bash 3.2 incompatibility

To avoid errors with bash 3.2, compopt will be skipped if it's not a
shell builtin.

compopt is needed to not append slashes to package names that
coincide with directories in PWD.

This is currently not possible to fix in bash versions that do not support
compopt, so these users will have to bear that regression.

Signed-off-by: Andres P <aepd87@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
contrib/bash_completion