- check that $BASH_COMPLETION_DIR is actually a directory

- update release to 20020311
This commit is contained in:
ianmacd 2002-03-11 18:36:44 +00:00
parent 7926c599ca
commit 5d3313a2ce

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05a
#
# $Id: bash_completion,v 1.194 2002/03/11 18:38:17 ianmacd Exp $
# $Id: bash_completion,v 1.195 2002/03/11 19:36:44 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
@ -18,7 +18,7 @@
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# RELEASE: 20020306
# RELEASE: 20020311
[ -n "$DEBUG" ] && set -v || set +v
@ -2566,7 +2566,8 @@ fi
unset list[@]
# source completion directory definitions
if [ -r $BASH_COMPLETION_DIR -a -x $BASH_COMPLETION_DIR ]; then
if [ -d $BASH_COMPLETION_DIR -a -r $BASH_COMPLETION_DIR -a \
-x $BASH_COMPLETION_DIR ]; then
for i in $BASH_COMPLETION_DIR/*; do
[ -r $i ] && . $i
done