FS#22807 - [bash-completion] Completing directories will end in a space instead of an slash
Attached to Project:
Arch Linux
Opened by Andreas Gohr (splitbrain) - Monday, 07 February 2011, 23:00 GMT
Last edited by Dan McGee (toofishes) - Friday, 11 February 2011, 20:46 GMT
Opened by Andreas Gohr (splitbrain) - Monday, 07 February 2011, 23:00 GMT
Last edited by Dan McGee (toofishes) - Friday, 11 February 2011, 20:46 GMT
|
Details
Description:
Completing directories will end in a space instead of an slash. This makes navigation directory hierarchies very hard and should be fixed. Additional info: * version 1.3-1 Steps to reproduce: * Enter /et[tab] * Result: "/etc " * Expected Result: "/etc/" |
This task depends upon
Closed by Dan McGee (toofishes)
Friday, 11 February 2011, 20:46 GMT
Reason for closing: Won't fix
Additional comments about closing: Busted elsewhere in AUR package
Friday, 11 February 2011, 20:46 GMT
Reason for closing: Won't fix
Additional comments about closing: Busted elsewhere in AUR package
/et[tab] --> /etc/
ls /et[tab] --> ls /etc[space]
Ernestas: You still had /etc/bash_completion sourced. To see the effect of removing bash-completion, logoff and relogin. Or use 'bash -l' to start a login shell.
However, reinstalling bash-completion and logging out and back in reproduces the problems as described above.
But relogging in after the reinstall made the problem re-appear.
-Install bash-completion
-Remove /etc/profile.d/bash_completion.sh (the bash package already source /etc/bash_completion
FS#22832)-Reloggin
One thing I noticed is after removal, there was still a /etc/bash_completion.d directory with about 10 files. I moved this directory and after the re-install there is over 40 files.. Don't know if this could help but it seems like it was missing some core files like bash-builtins etc...
Version: 1.3-1
Arch: x86_64
Obviously some other packages put their definitions in here, too. For instance there is a "yaourt" entry in the old folder which is missing now.
And a "yaourt -Ql yaourt" reveals exactly this:
yaourt /etc/bash_completion.d/yaourt
So copying back the missing definitions one by one and checking the completion behavior will most likely reveal the culprit.
Can somebody confirm this?
Edit:
There's a workaround for this in http://aur.archlinux.org/packages.php?ID=16980, it worked for me.
To note, the workaround is removing the "_filedir" function from the "/etc/bash_completion.d/acroread" file.
This works. I think this bug report can be closed.
[rant]The workaround was mentioned on December 31, 2010 on the acroread AUR page. A short note from the maintainer, in a post-install script perhaps, would have spared us quite some effort.[/rant]
Edit: I did put a comment about this on the acroread AUR page.