summaryrefslogtreecommitdiff
path: root/shell-completion
diff options
context:
space:
mode:
authorpoljar (Damir Jelić) <poljarinho@gmail.com>2013-08-14 16:09:06 +0200
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>2013-08-15 10:03:40 +0300
commitbf9b3f07207cf5c2b973647d8e68381ac76ac0db (patch)
tree38169c78304563c53aa593cb064f8705911c8d29 /shell-completion
parent49f93eb2b09f3a20733dbb80c6448ee69b0c89ec (diff)
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
Diffstat (limited to 'shell-completion')
-rw-r--r--shell-completion/pulseaudio-bash-completion.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell-completion/pulseaudio-bash-completion.sh b/shell-completion/pulseaudio-bash-completion.sh
index 5f60092e0..d5b99db0d 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