eselect

Works:

eselect bashcomp enable --global ri

Silently fails:

eselect bashcomp enable ri --global

Reason: (/usr/share/eselect/modules/bashcomp.eselect)

do_enable() {
    #...snip...
    if [[ ${1} == "--global" ]] ; then
        bcdir="${ROOT}/etc/bash_completion.d"
        shift
    fi

    #...snip...
    # ignore any unrecognized options
    [[ ${bc} == --* ]] && continue

Always looks for --global as the first parameter, apparently. Bug? Not sure. This would be the second eselect-related bug I've noticed in the past two days, if so.

August 01, 2007 @ 9:36 PM PDT
Cateogory: Linux

3 Comments

Ciaran McCreesh
Quoth Ciaran McCreesh on August 02, 2007 @ 4:29 AM PDT

That's no more a bug in eselect than a bug in a C program is a bug in GCC.

Brian
Quoth Brian on August 02, 2007 @ 4:55 AM PDT

Nothing to do with eselect itself, I know. Just a module. Loose usage of terminology on my part.

Steven Oliver
Quoth Steven Oliver on August 02, 2007 @ 3:30 PM PDT

Bug or not, the second method, which doesn't work, seems more natural to me anyway. Perhaps it should accept both.

Speak your Mind

You can use Markdown in your comment.
Email/URL are optional. Email is only used for Gravatar.

Preview