Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Correcting erroneous bash completion output?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
cgmd
Veteran
Veteran


Joined: 17 Feb 2005
Posts: 1585
Location: Louisiana

PostPosted: Sun May 24, 2009 8:37 pm    Post subject: Correcting erroneous bash completion output? Reply with quote

Hi, all...

Somehow, my bash completion has acquired some output errors, and I don't know how to fix it. For example:
Code:

cgmd ~ $ sudo dispa[tab]
cgmd ~ $ sudo dispatch-conf_   


How can I correct that faulty output of an underscore being added to "dispatch-conf"?

Thanks!
_________________
"Primum non nocere" ---Galen


Last edited by cgmd on Tue May 26, 2009 11:57 am; edited 1 time in total
Back to top
View user's profile Send private message
loki99
Advocate
Advocate


Joined: 10 Oct 2003
Posts: 2056
Location: Vienna, €urope

PostPosted: Sun May 24, 2009 9:02 pm    Post subject: Re: How do I correct a bash completion error? Reply with quote

cgmd wrote:
Hi, all...

Somehow, my basc completion has acquired some completion errors, and I don't know how to fix it. For example:
Code:

cgmd ~ $ sudo dispa[tab]
cgmd ~ $ sudo dispatch-conf_   


How can I correct that faulty output?

Thanks!

Mhh! What faulty output? I don't seem to understand. :?
Back to top
View user's profile Send private message
cgmd
Veteran
Veteran


Joined: 17 Feb 2005
Posts: 1585
Location: Louisiana

PostPosted: Sun May 24, 2009 9:07 pm    Post subject: Reply with quote

Sorry...

The output has an erroneous underscore at the end of it. :?

Thanks
_________________
"Primum non nocere" ---Galen
Back to top
View user's profile Send private message
cgmd
Veteran
Veteran


Joined: 17 Feb 2005
Posts: 1585
Location: Louisiana

PostPosted: Tue May 26, 2009 11:53 am    Post subject: Reply with quote

There must be a simple way to fix this...

Anyone?
_________________
"Primum non nocere" ---Galen
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Tue May 26, 2009 12:38 pm    Post subject: Reply with quote

Code:
which dispatch-conf{,_}
complete -p | grep sudo
declare -f _root_command
declare -f _command



and, just for the record:
Code:
ls -d /var/db/pkg/app-shells/bash-completion-[0-9]*
sed -n '\#/usr/share/bash-completion/base#p' /var/db/pkg/app-shells/bash-completion-[0-9]*/CONTENTS
openssl dgst -md5 /usr/share/bash-completion/base

_________________
The End of the Internet!
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Wed Jun 03, 2009 10:06 am    Post subject: Reply with quote

SOLVED?
_________________
The End of the Internet!
Back to top
View user's profile Send private message
cgmd
Veteran
Veteran


Joined: 17 Feb 2005
Posts: 1585
Location: Louisiana

PostPosted: Thu Jun 04, 2009 12:11 am    Post subject: Reply with quote

Hi, truc...

Solved, with respect to the trailing underscore when completing the sudo dispa[tab] command...

But, now, I get no completion to that command, at all, when using sudo. I'm certain I did get correct completion some time previously. :?

Thanks!
_________________
"Primum non nocere" ---Galen
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Thu Jun 04, 2009 5:46 am    Post subject: Reply with quote

How did you [partially] solved it then?
_________________
The End of the Internet!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum