# HG changeset patch # User Mike Becker # Date 1535200862 -7200 # Node ID 0eabb741d5d3537e0afa3e89e5ab5b22ffb0a511 # Parent 8158a1ada7560a3dd0a7f44f195c74eeeee800e1 fixes dav completion not working with (escaped) spaces diff -r 8158a1ada756 -r 0eabb741d5d3 scripts/dav-bash-completion.bash --- 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