From bf9b3f07207cf5c2b973647d8e68381ac76ac0db Mon Sep 17 00:00:00 2001 From: =?utf8?q?poljar=20=28Damir=20Jeli=C4=87=29?= Date: Wed, 14 Aug 2013 16:09:06 +0200 Subject: [PATCH] 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 --- shell-completion/pulseaudio-bash-completion.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2