View previous topic :: View next topic |
Author |
Message |
dv1983 n00b
Joined: 24 Sep 2012 Posts: 6
|
Posted: Mon Sep 24, 2012 2:03 pm Post subject: Gentoo bash completion bug probably |
|
|
Good day everyone, I need help.
When I try to find some file and move it via console (/bin/bash), for example, I type: mv /etc and push TAB.
The result is:
Completion system pushes extra space after /etc. Then, to continue tying path, I need to remove the last space, type / and 1st letter of the next directory and push TAB again.
What do I need to change/fix to avoid this extra doubtful feature?
Earlier, it worked fine.
Please, help. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9709 Location: almost Mile High in the USA
|
Posted: Mon Sep 24, 2012 4:16 pm Post subject: |
|
|
It behaves correctly on my machiine... Are you using a bashrc ?
Also, are you sure that /etc is actually a directory and not like a broken symlink or something (just trying to cover all bases here...) _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
dv1983 n00b
Joined: 24 Sep 2012 Posts: 6
|
Posted: Mon Sep 24, 2012 4:24 pm Post subject: |
|
|
No-no, it is a directory.
But, if I want to open some file in emacs, for example, the completion works correctly, because another rules are working here, emacs-specific.
So, I need to understand: maybe I must disable or enable something to avoid this or to rollback older behavour. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9709 Location: almost Mile High in the USA
|
Posted: Mon Sep 24, 2012 7:06 pm Post subject: |
|
|
emacs completion, vi completion, and bash tab completion are all different and independent completion mechanisms.
The only thing I can think of is you have a special setting specifying /etc as a completion word... but that's something special to your machine as far as I know... Are all accounts affected by this? _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
dv1983 n00b
Joined: 24 Sep 2012 Posts: 6
|
Posted: Tue Sep 25, 2012 9:42 am Post subject: |
|
|
So, I'm sure, that I break bash tab completion somehow. For another account it is also a problem. |
|
Back to top |
|
|
dv1983 n00b
Joined: 24 Sep 2012 Posts: 6
|
Posted: Tue Sep 25, 2012 9:47 am Post subject: |
|
|
I've disabled all completions:
Code: | # eselect bashcomp list | grep '*'
#
|
But it is still presents. |
|
Back to top |
|
|
dv1983 n00b
Joined: 24 Sep 2012 Posts: 6
|
Posted: Tue Sep 25, 2012 9:51 am Post subject: |
|
|
Code: | emerge -aC app-shells/bash-completion app-shells/gentoo-bashcomp |
solved the problem!
but, I don't understand, how bash-completion can works incorrect. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9709 Location: almost Mile High in the USA
|
Posted: Tue Sep 25, 2012 2:24 pm Post subject: |
|
|
For those readers joining in, emerge -C means emerge --unmerge and dv1983 unmerged bash-completion and gentoo-bashcomp.
It must have added some files some place that changed the operation of bash's default (and desired) internal completion.
Good to know. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
dv1983 n00b
Joined: 24 Sep 2012 Posts: 6
|
Posted: Tue Sep 25, 2012 2:33 pm Post subject: |
|
|
Sure, I simply uninstalled completion package. |
|
Back to top |
|
|
|