> + _invoke-rc.d completion permits to take real options from script you want
> to start and not some predefined options.
> '*::arguments _normal' \
What's this for?
> case $state in
> saction)
> case $words[CURRENT-1] in
> --*)
> ;;
> *)
> actions=($(sed -ne "y/|/ /; s/^.*Usage:[ ]*[^ ]*[
> ]*{*\([^}\"]*\).*$/\1/p" /etc/init.d/$words[CURRENT-1]))
> _wanted actions expl actions compadd $actions
> ;;
There's no fallback here if the script doesn't have the Usage: line.
Probably it would be smart to fall back to the standard list if $actions
is empty.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]