From: poljar (Damir Jelić) Date: Wed, 14 Aug 2013 14:09:06 +0000 (+0200) Subject: bash-completion: Fix device completion for pacat X-Git-Url: https://code.delx.au/pulseaudio/commitdiff_plain/bf9b3f07207cf5c2b973647d8e68381ac76ac0db bash-completion: Fix device completion for pacat The Bash shell completion for pacat --device combines the name of the last sink and the name of the first source. This patch fixes that by adding a whitespace separator in the list of devices. Buglink: https://bugs.freedesktop.org/show_bug.cgi?id=68106 --- diff --git a/shell-completion/pulseaudio-bash-completion.sh b/shell-completion/pulseaudio-bash-completion.sh index 5f60092e..d5b99db0 100644 --- a/shell-completion/pulseaudio-bash-completion.sh +++ b/shell-completion/pulseaudio-bash-completion.sh @@ -452,7 +452,7 @@ _pacat () { --device=*) cur=${cur#*=} comps=$(__sinks) - comps+=$(__sources) + comps+=" "$(__sources) COMPREPLY=($(compgen -W '${comps[*]}' -- "$cur")) ;; @@ -481,7 +481,7 @@ _pacat () { -s) _known_hosts_real "$cur" ;; -d) comps=$(__sinks) - comps+=$(__sources) + comps+=" "$(__sources) COMPREPLY=($(compgen -W '${comps[*]}' -- "$cur")) ;; esac