Don't complete encrypted passwords from ~/.cvspass as CVS roots, add some TODO comments.

This commit is contained in:
Ville Skyttä 2009-12-28 23:00:35 +02:00
parent f853e6a6a1
commit fcc305a11b

View File

@ -45,9 +45,11 @@ _cvs_kflags()
_cvs_roots()
{
# TODO: this works very poorly because of the colons
if [ -r ~/.cvspass ]; then
# Ugly escaping because of bash treating ':' specially
cvsroots=$( sed -e 's/^[^ ]* //' -e 's/:/\\:/g' ~/.cvspass )
# TODO: this ugly escaping doesn't help :P
cvsroots=$( awk '{ print $2 }' ~/.cvspass | sed -e 's/:/\\:/g' )
COMPREPLY=( $( compgen -W '$cvsroots' -- "$cur" ) )
fi
}