[pulseaudio-tickets] [Bug 68106] New: shell-completion: pacat device completion doesn't work properly with Bash
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Aug 14 06:44:07 PDT 2013
https://bugs.freedesktop.org/show_bug.cgi?id=68106
Priority: medium
Bug ID: 68106
CC: lennart at poettering.net
Assignee: pulseaudio-bugs at lists.freedesktop.org
Summary: shell-completion: pacat device completion doesn't work
properly with Bash
QA Contact: pulseaudio-bugs at lists.freedesktop.org
Severity: normal
Classification: Unclassified
OS: All
Reporter: tanuk at iki.fi
Hardware: Other
Status: NEW
Version: unspecified
Component: tools
Product: PulseAudio
The Bash shell completion for pacat --device somehow combines the names of
sinks and their monitor sources, resulting in mess like the following:
> pacat --device=alsa_<TAB>
alsa_input.pci-0000_00_1b.0.analog-stereo
alsa_output.pci-0000_00_1b.0.analog-stereoalsa_output.pci-0000_00_1b.0.analog-stereo.monitor
Note the concatenated string containing a sink name and the sink's monitor
source name. Here's a snippet from _pacat():
_pacat () {
...
case $cur in
...
--device=*)
cur=${cur#*=}
comps=$(__sinks)
comps+=$(__sources)
COMPREPLY=($(compgen -W '${comps[*]}' -- "$cur"))
;;
The bug is probably in the _pacat() function, because the __sinks() and
__sources() functions seem good. I suspect the COMPREPLY line is incorrect, but
I don't know in what way.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20130814/2f80ecdd/attachment.html>
More information about the pulseaudio-bugs
mailing list