Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 336081

Summary: app-shells/gentoo-bashcomp does not complete all options for /etc/init.d/*
Product: Gentoo Linux Reporter: Róbert Čerňanský <openhs>
Component: Current packagesAssignee: Gentoo Shell Tools project <shell-tools>
Status: CONFIRMED ---    
Severity: minor CC: jinjiongxin
Priority: High Keywords: NeedPatch
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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. ***