Fix service argument completion.

This commit is contained in:
Ville Skyttä 2009-11-03 23:36:01 +02:00
parent 5b54c41de5
commit ef46331012
2 changed files with 3 additions and 3 deletions

View File

@ -19,8 +19,8 @@ bash-completion (2.x)
* Apply cardctl completion to pccardctl too. * Apply cardctl completion to pccardctl too.
* Apply pine completion to alpine too. * Apply pine completion to alpine too.
* Remove many unnecessary short option completions where long ones exist. * Remove many unnecessary short option completions where long ones exist.
* Improve configure, cvs, gkrellm, lftp, mdadm, mysqladmin, and ssh * Improve configure, cvs, gkrellm, lftp, mdadm, mysqladmin, service, and
completions. ssh completions.
* Add abook and wtf completion, based on work by Raphaël Droz. * Add abook and wtf completion, based on work by Raphaël Droz.
* Add k3b and lftpget completion. * Add k3b and lftpget completion.
* Don't overwrite other host completions when completing from multiple * Don't overwrite other host completions when completing from multiple

View File

@ -768,7 +768,7 @@ _service()
_services _services
else else
COMPREPLY=( $( compgen -W '`sed -ne "y/|/ /; \ 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" ) ) $sysvdir/${prev##*/} 2>/dev/null`' -- "$cur" ) )
fi fi