diff --git a/CHANGES b/CHANGES index b0beae8d..95069163 100644 --- a/CHANGES +++ b/CHANGES @@ -38,6 +38,7 @@ bash-completion (1.x) * Fixed obvious brokenness (typos) in contrib/mdadm * Patches from PLD Linux (thanks to Elan Ruusamäe): - avoid sed pipe as ps itself can omit the headers + - improve service(8) completion, also look for "msg_usage" [ Ville Skyttä ] * Split yum completion to contrib/_yum (no longer installed by default, the diff --git a/bash_completion b/bash_completion index 58731b55..0e5bca78 100644 --- a/bash_completion +++ b/bash_completion @@ -655,7 +655,7 @@ _service() _services else COMPREPLY=( $( compgen -W '`sed -ne "y/|/ /; \ - s/^.*Usage.*{\(.*\)}.*$/\1/p" \ + s/^.*\(U\|msg_u\)sage.*{\(.*\)}.*$/\1/p" \ $sysvdir/${prev##*/} 2>/dev/null`' -- $cur ) ) fi