Fix service argument completion.
This commit is contained in:
parent
5b54c41de5
commit
ef46331012
4
CHANGES
4
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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user