shell-completion: Do not use 'awk -e' in bash completion

mawk does not support  option -e. If mawk is the default awk,
like it is in Ubuntu by default, the completion does not work.
This commit is contained in:
Jarno Suni 2020-01-30 09:50:26 +00:00 committed by Tanu Kaskinen
parent a6beb3f4bf
commit 2afadb7119

View file

@ -37,7 +37,7 @@ __source_outputs () {
}
__ports () {
pactl list cards 2> /dev/null | awk -e \
pactl list cards 2> /dev/null | awk -- \
'/^\tPorts:/ {
flag=1; next
}
@ -57,7 +57,7 @@ __ports () {
}
__profiles () {
pactl list cards 2> /dev/null | awk -e \
pactl list cards 2> /dev/null | awk -- \
'/^\tProfiles:/ {
flag=1; next
}