Summary: | app-admin/eselect - eselect bashcomp enable [foo] links to file ./foo | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | jesper |
Component: | eselect | Assignee: | Gentoo eselect Team <eselect> |
Status: | RESOLVED FIXED | ||
Severity: | minor | Keywords: | InVCS |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
jesper
2011-04-13 12:46:05 UTC
jer@bastiaan ~ $ touch crontab jer@bastiaan ~ $ eselect bashcomp enable crontab jer@bastiaan ~ $ ls .bash_completion.d/ -l total 0 lrwxrwxrwx 1 jer jer 18 Apr 13 18:04 crontab -> //home/jer/crontab lrwxrwxrwx 1 jer jer 30 Oct 26 20:44 cvs -> /usr/share/bash-completion/cvs lrwxrwxrwx 1 jer jer 33 Oct 26 20:43 gentoo -> /usr/share/bash-completion/gentoo lrwxrwxrwx 1 jer jer 34 Nov 1 05:02 repoman -> /usr/share/bash-completion/repoman lrwxrwxrwx 1 jer jer 30 Oct 26 20:43 ssh -> /usr/share/bash-completion/ssh Indeed! Assigning to correct group. % qfile /usr/share/eselect/modules/bashcomp.eselect app-admin/eselect (/usr/share/eselect/modules/bashcomp.eselect) By looking into bashcomp.eselect one can see that it's not a bug, but a feature: ;-) case "${bc}" in # absolute path /*) file=${ROOT}/${bc} ;; # relative path */*) file=${ROOT}/${PWD}/${bc} ;; # no path *) # CWD if [[ -f ${bc} ]] ; then file=${ROOT}/${PWD}/${bc} # assume /usr/share/bash-completion elif [[ -f ${EROOT}/usr/share/bash-completion/${bc} ]] ; then file=${EROOT}/usr/share/bash-completion/${bc} else ... fi ;; esac However, I wonder how useful this is. We could change search order in the "no path" case, or not search in cwd at all (the user could easily specify "foo" in cwd as "./foo"). Fixed in SVN (revision 830). Fixed in eselect 1.2.17. Thank you for reporting this issue. |