Sat, 25 Aug 2018 14:41:02 +0200
fixes dav completion not working with (escaped) spaces
scripts/dav-bash-completion.bash | file | annotate | diff | comparison | revisions |
--- a/scripts/dav-bash-completion.bash Thu Jul 19 17:11:14 2018 +0200 +++ b/scripts/dav-bash-completion.bash Sat Aug 25 14:41:02 2018 +0200 @@ -3,8 +3,8 @@ local out local cmd_res - davcmd="${COMP_WORDS[0]}" - out=$( $davcmd complete $COMP_CWORD "${COMP_WORDS[@]}" ) + davcmd="${COMP_WORDS[0]} complete $COMP_CWORD ${COMP_WORDS[@]}" + out=$(eval $davcmd) cmd_res=$? if [ $cmd_res == 10 ]; then