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

Bug 264714

Summary: app-shells/bash-completion-20081219-r1 is broken for killall when command name is >15 characters
Product: Gentoo Linux Reporter: Nikoli <nikoli>
Component: Current packagesAssignee: Gentoo Shell Tools project <shell-tools>
Status: RESOLVED FIXED    
Severity: normal CC: nfortino
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 265504    
Attachments: pnames backport

Description Nikoli 2009-04-02 22:21:13 UTC
app-shells/bash-completion-20060301 could autocomplete long (>15) command names in killall:
"killall cons<TAB>" became "killall console-kit-daemon" with version 20060301, but now it shows "killall console-kit-dae" and I can kill this task only after typing "killall cons<TAB>mon"

p.s. I have:
app-shells/bash-3.2_p39
app-shells/bash-completion-20081219-r1
app-shells/gentoo-bashcomp-20050516

Reproducible: Always

Steps to Reproduce:
Comment 1 Nick Fortino 2009-04-03 06:42:16 UTC
Created attachment 187155 [details, diff]
pnames backport

It looks as though upstream has gone through a lot of break and fix cycles when it comes to grabbing the names of the running processes. This patch backports the process name handling from the current upstream live tree.
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-04-09 04:52:05 UTC
I think it works now in v1.0. Please reopen or contact me if I am wrong. You will have to "downgrade" to get 1.0.

My test that worked:
%% echo "sleep 600" >> reallllllylongnameeee.sh 
%% bash reallllllylongnameeee.sh
%% killall rea<tab>
Comment 3 Nikoli 2009-04-09 07:09:34 UTC
Thank you, Jeremy! killall now works fine with:
app-shells/bash-3.2_p39
app-shells/bash-completion-1.0
app-shells/gentoo-bashcomp-20090222