diff options
author | Christoph Willing <chris.willing@linux.com> | 2015-09-14 01:27:54 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-09-14 01:27:54 +0700 |
commit | abbd682493819b5b63853cb17acff92dd56f2212 (patch) | |
tree | 874fcd4255594444889870a69d8d3029039e7b92 /audio/pulseaudio/030_posix-completion.diff | |
parent | a2fa8c03e7924204062aea3cd1c9731a9f56cc78 (diff) | |
download | slackbuilds-abbd682493819b5b63853cb17acff92dd56f2212.tar.gz |
audio/pulseaudio: Make bash completion script posix friendly.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/pulseaudio/030_posix-completion.diff')
-rw-r--r-- | audio/pulseaudio/030_posix-completion.diff | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/audio/pulseaudio/030_posix-completion.diff b/audio/pulseaudio/030_posix-completion.diff new file mode 100644 index 0000000000..de1ef055ef --- /dev/null +++ b/audio/pulseaudio/030_posix-completion.diff @@ -0,0 +1,91 @@ +--- shell-completion/bash/pulseaudio.orig 2015-02-13 00:10:35.000000000 +1000 ++++ shell-completion/bash/pulseaudio 2015-09-12 11:09:36.948222926 +1000 +@@ -1,39 +1,45 @@ + #!/bin/bash + + __cards () { ++ (pactl list cards short 2> /dev/null) |\ + while IFS=$'\t' read idx name _; do + printf "%s %s\n" "$idx" "$name" +- done < <(pactl list cards short 2> /dev/null) ++ done + } + + __sinks () { ++ (pactl list sinks short 2> /dev/null) |\ + while IFS=$'\t' read _ name _ _ _; do + printf "%s\n" "$name" +- done < <(pactl list sinks short 2> /dev/null) ++ done + } + + __sinks_idx () { ++ (pactl list sinks short 2> /dev/null) |\ + while IFS=$'\t' read idx _ _ _ _; do + printf "%s\n" "$idx" +- done < <(pactl list sinks short 2> /dev/null) ++ done + } + + __sources () { ++ (pactl list sources short 2> /dev/null) |\ + while IFS=$'\t' read _ name _ _ _; do + printf "%s\n" "$name" +- done < <(pactl list sources short 2> /dev/null) ++ done + } + + __sink_inputs () { ++ (pactl list sink-inputs short 2> /dev/null) |\ + while IFS=$'\t' read idx _ _ _ _; do + printf "%s\n" "$idx" +- done < <(pactl list sink-inputs short 2> /dev/null) ++ done + } + + __source_outputs () { ++ (pactl list source-outputs short 2> /dev/null) |\ + while IFS=$'\t' read idx _ _ _ _; do + printf "%s\n" "$idx" +- done < <(pactl list source-outputs short 2> /dev/null) ++ done + } + + __ports () { +@@ -77,28 +83,32 @@ + } + + __all_modules () { ++ (pulseaudio --dump-modules 2> /dev/null) |\ + while read name; do + name=${name%% *} + printf "%s\n" "$name" +- done < <(pulseaudio --dump-modules 2> /dev/null) ++ done + } + + __loaded_modules () { ++ (pactl list modules short 2> /dev/null) |\ + while IFS=$'\t' read idx name _; do + printf "%s %s\n" "$idx" "$name" +- done < <(pactl list modules short 2> /dev/null) ++ done + } + + __resample_methods () { ++ (pulseaudio --dump-resample-methods 2> /dev/null) |\ + while read name; do + printf "%s\n" "$name" +- done < <(pulseaudio --dump-resample-methods 2> /dev/null) ++ done + } + + _pacat_file_formats () { ++ (pacat --list-file-formats 2> /dev/null) |\ + while IFS=$'\t' read name _; do + printf "%s\n" "$name" +- done < <(pacat --list-file-formats 2> /dev/null) ++ done + } + + in_array() { |