View previous topic :: View next topic |
Author |
Message |
cgmd Veteran
Joined: 17 Feb 2005 Posts: 1585 Location: Louisiana
|
Posted: Sun May 24, 2009 8:37 pm Post subject: Correcting erroneous bash completion output? |
|
|
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 |
|
|
loki99 Advocate
Joined: 10 Oct 2003 Posts: 2056 Location: Vienna, €urope
|
Posted: Sun May 24, 2009 9:02 pm Post subject: Re: How do I correct a bash completion error? |
|
|
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 |
|
|
cgmd Veteran
Joined: 17 Feb 2005 Posts: 1585 Location: Louisiana
|
Posted: Sun May 24, 2009 9:07 pm Post subject: |
|
|
Sorry...
The output has an erroneous underscore at the end of it.
Thanks _________________ "Primum non nocere" ---Galen |
|
Back to top |
|
|
cgmd Veteran
Joined: 17 Feb 2005 Posts: 1585 Location: Louisiana
|
Posted: Tue May 26, 2009 11:53 am Post subject: |
|
|
There must be a simple way to fix this...
Anyone? _________________ "Primum non nocere" ---Galen |
|
Back to top |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Tue May 26, 2009 12:38 pm Post subject: |
|
|
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 |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
|
Back to top |
|
|
cgmd Veteran
Joined: 17 Feb 2005 Posts: 1585 Location: Louisiana
|
Posted: Thu Jun 04, 2009 12:11 am Post subject: |
|
|
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 |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Thu Jun 04, 2009 5:46 am Post subject: |
|
|
How did you [partially] solved it then? _________________ The End of the Internet! |
|
Back to top |
|
|
|