- _cvs(): get rid of grep in get_entries(), so that characters such as '.'

in file names don't get interpreted
This commit is contained in:
ianmacd 2002-05-16 07:10:04 +00:00
parent 902a06d374
commit 780defa0dc

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05a
#
# $Id: bash_completion,v 1.320 2002/05/16 09:05:04 ianmacd Exp $
# $Id: bash_completion,v 1.321 2002/05/16 09:10:04 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
@ -875,6 +875,8 @@ set_prefix()
get_entries()
{
entries=( $( cut -d/ -f2 -s ${prefix}CVS/Entries | grep "^$cur" ) )
entries=( $( compgen -W \
"$( echo $( cut -d/ -f2 -s ${prefix}CVS/Entries ) )" -- $cur ) )
}
get_modules()