Don't complete encrypted passwords from ~/.cvspass as CVS roots, add some TODO comments.
This commit is contained in:
parent
f853e6a6a1
commit
fcc305a11b
@ -45,9 +45,11 @@ _cvs_kflags()
|
|||||||
|
|
||||||
_cvs_roots()
|
_cvs_roots()
|
||||||
{
|
{
|
||||||
|
# TODO: this works very poorly because of the colons
|
||||||
if [ -r ~/.cvspass ]; then
|
if [ -r ~/.cvspass ]; then
|
||||||
# Ugly escaping because of bash treating ':' specially
|
# 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" ) )
|
COMPREPLY=( $( compgen -W '$cvsroots' -- "$cur" ) )
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user