Bug 238

Summary: missing link: /etc/bash_completion.d/helpers ->/usr/share/bash-completion/helpers
Product: Mageia Reporter: Jerome Quelin <jquelin>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: dmorganec
Version: Cauldron   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: bash-completion CVE:
Status comment:

Description Jerome Quelin 2011-02-28 15:11:49 CET
to reproduce:
$ perldoc File<tab>bash: /etc/bash_completion.d/helpers/perl: Aucun fichier ou dossier de ce type

to fix:
# cd /etc/bash_completion.d/
# ln -s /usr/share/bash-completion/helpers

(retry the "to reproduce" section of the bug report to check it's now ok)

explanation:
$ grep helpers /etc/bash_completion.d/*
perl:    COMPREPLY=( $( compgen -P "$prefix" -W "$( $1 ${BASH_SOURCE[0]%/*}/helpers/perl modules $cur )" -- "$cur" ) )
perl:    COMPREPLY=( $( compgen -P "$prefix" -W "$( ${BASH_SOURCE[0]%/*}/helpers/perl functions $cur )" -- "$cur" ) )

${BASH_SOURCE[0]%/*} is evaluated as /etc/bash_completion.d, so a helpers link is missing.


Reproducible: 

Steps to Reproduce:
D Morgan 2011-02-28 15:34:29 CET

CC: (none) => dmorganec
Source RPM: (none) => bash-completion

Comment 1 Ahmad Samir 2011-02-28 17:55:03 CET
I added a patch from Fedora to adapt to the the helpers dir location use in Mageia, remove the symlink you created and update to bash-completion-1.3-2.mga1, then test again.

Keywords: (none) => NEEDINFO

Comment 2 Jerome Quelin 2011-02-28 18:27:19 CET
nope, this doesn't solve the problem...

$ rpm -q bash-completion
bash-completion-1.3-2.mga1
$ perldoc Filbash: /etc/bash_completion.d/helpers/perl: Aucun fichier ou dossier de ce type
Comment 3 Ahmad Samir 2011-02-28 19:09:20 CET
Did you start a new terminal? (you have to, so that the bash-completion changes get picked up).
Comment 4 Jerome Quelin 2011-03-01 08:44:32 CET
doh! you're right. i was pretty sure i created a new shell, but it seems not. so indeed, it works now.

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 5 Ahmad Samir 2011-03-01 18:39:25 CET
No problem :)

Keywords: NEEDINFO => (none)