- _java(): fixed reference to wrong local variable

This commit is contained in:
ianmacd 2002-03-08 17:26:41 +00:00
parent a30b482971
commit dbeb1401db

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05a # bash_completion - some programmable completion functions for bash 2.05a
# #
# $Id: bash_completion,v 1.188 2002/03/08 18:21:30 ianmacd Exp $ # $Id: bash_completion,v 1.189 2002/03/08 18:26:41 ianmacd Exp $
# #
# Copyright (C) Ian Macdonald <ian@caliban.org> # Copyright (C) Ian Macdonald <ian@caliban.org>
# #
@ -2263,7 +2263,7 @@ _java()
elif [ -d $i ]; then elif [ -d $i ]; then
COMPREPLY=( ${COMPREPLY[@]} $( find $i -type f \ COMPREPLY=( ${COMPREPLY[@]} $( find $i -type f \
-name *.class | grep .class | \ -name *.class | grep .class | \
sed -e 's|^'$elt'/||' \ sed -e 's|^'$i'/||' \
-e 's|\.class$||' \ -e 's|\.class$||' \
-e 's|/|.|g' | grep ^$cur ) ) -e 's|/|.|g' | grep ^$cur ) )
fi fi