]> code.delx.au - pulseaudio/commitdiff
bash-completion: Fix device completion for pacat
authorpoljar (Damir Jelić) <poljarinho@gmail.com>
Wed, 14 Aug 2013 14:09:06 +0000 (16:09 +0200)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Thu, 15 Aug 2013 07:03:40 +0000 (10:03 +0300)
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

index 5f60092e0a933b0b2ea1cf619fe6d042313d2808..d5b99db0d7ad7e635f4b86a34c44ec764c978715 100644 (file)
@@ -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