Your message dated Mon, 18 Jan 2016 19:36:00 +0100
with message-id <[email protected]>
and subject line Re: sysv-rc: bash_completion for update-rc.d and invoke-rc.d
has caused the Debian Bug report #273810,
regarding update-rc.d,invoke-rc.d: bash_completion for update-rc.d and
invoke-rc.d
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
273810: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=273810
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sysv-rc
Version: 2.86-5
Severity: wishlist
Tags: patch
Here is the nice bash completion for invoke-rc.d and update-rc.d. When you type
the names
of these commands you can press TAB and have the list of available services and
options.
Makes using these two commands much easier ;)
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.7
Locale: LANG=pl_PL, LC_CTYPE=pl_PL
-- no debconf information
# invoke-rc.d completion
#
have invoke-rc.d &&
_invoke-rc.d()
{
local cur prev sysvdir services actions params cword
sysvdir=/etc/init.d
services=( $( builtin echo $sysvdir/!(README|*~|functions)) )
services=${services[@]#@($sysvdir)/}
actions="start stop force-stop restart reload force-reload"
params="--quiet --force --try-anyway --disclose-deny --query
--no-fallback"
cur=${COMP_WORDS[COMP_CWORD]}
prev=${COMP_WORDS[COMP_CWORD-1]}
cword=$COMP_CWORD
for (( i=0; i < ${#COMP_WORDS}-1; i++ )); do
if [[ ${COMP_WORDS[i]} == -* ]]; then
cword=$(($cword-1))
fi
done
if [[ $cword -eq 1 ]]; then
COMPREPLY=( $( compgen -W '$params $services' -- $cur ) )
elif [[ $cword -eq 2 ]]; then
COMPREPLY=( $( compgen -W '$actions' -- $cur ) )
else
return 0
fi
}
[ -n "${have:-}" ] && complete -F _invoke-rc.d invoke-rc.d
have update-rc.d &&
_update-rc.d()
{
local cur prev sysvdir services actions params cword
sysvdir=/etc/init.d
services=( $( builtin echo $sysvdir/!(README|*~|functions)) )
services=${services[@]#@($sysvdir)/}
actions="defaults remove start stop"
params="-n -f"
cur=${COMP_WORDS[COMP_CWORD]}
prev=${COMP_WORDS[COMP_CWORD-1]}
cword=$COMP_CWORD
for (( i=0; i < ${#COMP_WORDS}-1; i++ )); do
if [[ ${COMP_WORDS[i]} == -* ]]; then
cword=$(($cword-1))
if [[ ${COMP_WORDS[i]} == -f ]]; then
actions="remove"
fi
fi
done
if [[ $cword -eq 1 ]]; then
COMPREPLY=( $( compgen -W '$params $services' -- $cur ) )
elif [[ $cword -eq 2 ]]; then
COMPREPLY=( $( compgen -W '$actions' -- $cur ) )
else
return 0
fi
}
[ -n "${have:-}" ] && complete -F _update-rc.d update-rc.d
--- End Message ---
--- Begin Message ---
Hi Maciej
On Tue, 28 Sep 2004 11:25:05 +0200 Maciej Dems
<[email protected]> wrote:
> Package: sysv-rc
> Version: 2.86-5
> Severity: wishlist
> Tags: patch
>
> Here is the nice bash completion for invoke-rc.d and update-rc.d. When you
> type the names
> of these commands you can press TAB and have the list of available services
> and options.
>
> Makes using these two commands much easier ;)
The bash-completion package nowadays ships
/usr/share/bash-completion/completions/invoke-rc.d
/usr/share/bash-completion/completions/update-rc.d
So I guess it's safe to close this bug report.
Further improvements to those completion files should be sent to the
bash-completion maintainers.
Regards,
Michael
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature
--- End Message ---