diff --git a/CHANGES b/CHANGES index 79cf9951..2ed58556 100644 --- a/CHANGES +++ b/CHANGES @@ -19,8 +19,8 @@ bash-completion (2.x) * Apply cardctl completion to pccardctl too. * Apply pine completion to alpine too. * Remove many unnecessary short option completions where long ones exist. - * Improve configure, cvs, gkrellm, lftp, mdadm, mysqladmin, and ssh - completions. + * Improve configure, cvs, gkrellm, lftp, mdadm, mysqladmin, service, and + ssh completions. * Add abook and wtf completion, based on work by Raphaƫl Droz. * Add k3b and lftpget completion. * Don't overwrite other host completions when completing from multiple diff --git a/bash_completion b/bash_completion index b23fde0a..3bade058 100644 --- a/bash_completion +++ b/bash_completion @@ -768,7 +768,7 @@ _service() _services else COMPREPLY=( $( compgen -W '`sed -ne "y/|/ /; \ - s/^.*\(U\|msg_u\)sage.*{\(.*\)}.*$/\1/p" \ + s/^.*\(U\|msg_u\)sage.*{\(.*\)}.*$/\2/p" \ $sysvdir/${prev##*/} 2>/dev/null`' -- "$cur" ) ) fi