diff --git a/gio/completion/gapplication b/gio/completion/gapplication index ed592bb24..429b6cf83 100644 --- a/gio/completion/gapplication +++ b/gio/completion/gapplication @@ -16,7 +16,7 @@ __app() { 2) case "${COMP_WORDS[1]}" in launch|action|list-actions) - COMPREPLY=($(compgen -W "`gapplication list-apps`" -- "${COMP_WORDS[2]}")) + COMPREPLY=($(compgen -W "$(gapplication list-apps)" -- "${COMP_WORDS[2]}")) return 0 ;; @@ -33,7 +33,7 @@ __app() { action) # Word 3 is the action name. This is the only one we can help with. if [ "${COMP_CWORD}" == 3 ]; then - COMPREPLY=($(compgen -W "`gapplication list-actions "${COMP_WORDS[2]}"`" -- "${COMP_WORDS[3]}")) + COMPREPLY=($(compgen -W "$(gapplication list-actions "${COMP_WORDS[2]}")" -- "${COMP_WORDS[3]}")) return 0 else COMPREPLY=() diff --git a/gio/completion/gdbus b/gio/completion/gdbus index c9418fb06..cfe87517b 100644 --- a/gio/completion/gdbus +++ b/gio/completion/gdbus @@ -9,7 +9,7 @@ __gdbus() { local IFS=$'\n' - local cur=`_get_cword :` + local cur="$(_get_cword :)" local suggestions=$(gdbus complete "${COMP_LINE}" ${COMP_POINT}) COMPREPLY=($(compgen -W "$suggestions" -- "$cur"))