Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 274759 - eselect-1.1.1's bashcomp.eselect module does not process ES_BASHCOMP_DIRS correctly
Summary: eselect-1.1.1's bashcomp.eselect module does not process ES_BASHCOMP_DIRS cor...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: eselect (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo eselect Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-20 02:24 UTC by Jacob Godserv
Modified: 2009-06-20 17:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
bashcomp.eselect patch: [@] addition (buggy-bashcomp-dirs_bashcomp.eselect.patch,381 bytes, patch)
2009-06-20 02:25 UTC, Jacob Godserv
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jacob Godserv 2009-06-20 02:24:22 UTC
In attempting to patch bashcomp.eselect for Gentoo Prefix support, I came across a bug in the way bashcomp.eselect handles the array ES_BASHCOMP_DIRS. Attached is a patch to fix.

Basically, the for loop that processes ES_BASHCOMP_DIRS only ever accesses the first index, rather than looping through all of them.

Reproducible: Always

Steps to Reproduce:
Comment 1 Jacob Godserv 2009-06-20 02:25:01 UTC
Created attachment 195243 [details, diff]
bashcomp.eselect patch: [@] addition
Comment 2 Ulrich Müller gentoo-dev 2009-06-20 16:10:08 UTC
I think that it was never intended that ES_BASHCOMP_DIRS is an array. It is rather a space-separated list of directories.
Comment 3 Jacob Godserv 2009-06-20 16:30:47 UTC
I'm fine with whatever you pick, since the functionality will remain the same in the end, but a space-separated list of directories is much more prone to breaking than an array.
Comment 4 Ulrich Müller gentoo-dev 2009-06-20 17:55:03 UTC
It has been a space-separated array since its introduction three years ago. Changing it now would break the systems of people who expect its current (although undocumented) functionality.