- don't source files in $BASH_COMPLETION_DIR if they end in ~ or .bak
This commit is contained in:
parent
f7e9a07995
commit
74296a3fd7
@ -1,6 +1,6 @@
|
||||
# bash_completion - some programmable completion functions for bash 2.05b
|
||||
#
|
||||
# $Id: bash_completion,v 1.469 2002/12/04 07:26:35 ianmacd Exp $
|
||||
# $Id: bash_completion,v 1.470 2002/12/04 07:41:21 ianmacd Exp $
|
||||
#
|
||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||
#
|
||||
@ -4103,7 +4103,7 @@ unset list[@]
|
||||
if [ -d $BASH_COMPLETION_DIR -a -r $BASH_COMPLETION_DIR -a \
|
||||
-x $BASH_COMPLETION_DIR ]; then
|
||||
for i in $BASH_COMPLETION_DIR/*; do
|
||||
[ -f $i -a -r $i ] && . $i
|
||||
[[ ${i##*/} != @(*~|*.bak| ]] && [ -f $i -a -r $i ] && . $i
|
||||
done
|
||||
fi
|
||||
unset i
|
||||
|
Loading…
x
Reference in New Issue
Block a user