[PATCH] bash-completion: Fix device completion for pacat

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The Bash shell completion for pacat --device combines the names
of sinks and their monitor sources.

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 5f60092..d5b99db 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
-- 
1.8.3.4



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux