Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 336081 - app-shells/gentoo-bashcomp does not complete all options for /etc/init.d/*
Summary: app-shells/gentoo-bashcomp does not complete all options for /etc/init.d/*
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor with 1 vote (vote)
Assignee: Gentoo Shell Tools project
Keywords: NeedPatch
Depends on:
Reported: 2010-09-05 12:34 UTC by Róbert Čerňanský
Modified: 2011-03-27 19:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Róbert Čerňanský 2010-09-05 12:34:26 UTC
When trying to complete options for an /etc/init.d/* script, it completes only "extra" options, not the standard ones.

For example:

# /etc/init.d/iptables <TAB><TAB>
panic   reload  save

But iptables script has also standard options like start, stop, restart, pause and zap however these are not offered by the bash completion.

Tested on stable amd64 with app-shells/gentoo-bashcomp-20090613 and sys-apps/baselayout-1.12.13.

Expected result is that bash completion will offer all possible options for init scripts. So for above example it would look like:

# /etc/init.d/iptables <TAB><TAB>
start stop restart pause zap panic reload save
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-12-12 03:33:53 UTC
confirmed. It is only for init scripts *with* extra options though.
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-03-27 19:10:25 UTC
*** Bug 360083 has been marked as a duplicate of this bug. ***