# HG changeset patch # User Oleksandr Gavenko # Date 1380805980 -10800 # Node ID 19faaf3d9d322ead11253a093c823b57eaf34177 # Parent cbe5958b4d6cd489dca7a1cfd5d7fa78d9897a6d Use compound assignment to array instead of manual index updating. diff -r cbe5958b4d6c -r 19faaf3d9d32 .bash_completion --- a/.bash_completion Thu Oct 03 16:05:37 2013 +0300 +++ b/.bash_completion Thu Oct 03 16:13:00 2013 +0300 @@ -64,10 +64,9 @@ return 0 fi local i j k - k=0 for i in ${CDPATH//:/$'\n'}; do for j in $( compgen -d -- $i/$cur ); do - COMPREPLY[k++]=${j#$i/}/ + COMPREPLY+=(${j#$i/}/) done done return 0