summaryrefslogtreecommitdiff
blob: 6fd38a0772126e1661a89ddc99bd459411f9f8eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- a/contrib/devtodo.bash-completion
+++ b/contrib/devtodo.bash-completion
@@ -15,20 +15,20 @@ _devtodo() {
         --purge"
 
     if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
-        COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+        COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
         return 0
     fi
 
     case "${prev}" in
         -p|--priority)
             COMPREPLY=( $(compgen -W "default veryhigh high medium low verylow" \
-                -- ${cur}) )
+                -- "${cur}") )
             ;;
         --database-loaders)
-            COMPREPLY=( $(compgen -W "xml binary" -- ${cur}) )
+            COMPREPLY=( $(compgen -W "xml binary" -- "${cur}") )
             ;;
         -l|--link|--*database)
-            COMPREPLY=( $(compgen -f -- ${cur}) )
+            _filedir
             ;;
         *)
             COMPREPLY=()