fixes dav completion not working with (escaped) spaces

Sat, 25 Aug 2018 14:41:02 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 25 Aug 2018 14:41:02 +0200
changeset 457
0eabb741d5d3
parent 456
8158a1ada756
child 458
295eaa04fc41

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

mercurial