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()
|
||||
{
|
||||
# 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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user