Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo bash completion bug probably
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
dv1983
n00b
n00b


Joined: 24 Sep 2012
Posts: 6

PostPosted: Mon Sep 24, 2012 2:03 pm    Post subject: Gentoo bash completion bug probably Reply with quote

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:

Code:
# mv /etc


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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9601
Location: almost Mile High in the USA

PostPosted: Mon Sep 24, 2012 4:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
dv1983
n00b
n00b


Joined: 24 Sep 2012
Posts: 6

PostPosted: Mon Sep 24, 2012 4:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9601
Location: almost Mile High in the USA

PostPosted: Mon Sep 24, 2012 7:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
dv1983
n00b
n00b


Joined: 24 Sep 2012
Posts: 6

PostPosted: Tue Sep 25, 2012 9:42 am    Post subject: Reply with quote

So, I'm sure, that I break bash tab completion somehow. For another account it is also a problem.
Back to top
View user's profile Send private message
dv1983
n00b
n00b


Joined: 24 Sep 2012
Posts: 6

PostPosted: Tue Sep 25, 2012 9:47 am    Post subject: Reply with quote

I've disabled all completions:

Code:
# eselect bashcomp list | grep '*'
#


But it is still presents.
Back to top
View user's profile Send private message
dv1983
n00b
n00b


Joined: 24 Sep 2012
Posts: 6

PostPosted: Tue Sep 25, 2012 9:51 am    Post subject: Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9601
Location: almost Mile High in the USA

PostPosted: Tue Sep 25, 2012 2:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
dv1983
n00b
n00b


Joined: 24 Sep 2012
Posts: 6

PostPosted: Tue Sep 25, 2012 2:33 pm    Post subject: Reply with quote

Sure, I simply uninstalled completion package.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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