Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 437932 - app-shells/gentoo-bashcomp: bash 4 breaks versioned atom (=*) completions
Summary: app-shells/gentoo-bashcomp: bash 4 breaks versioned atom (=*) completions
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Shell Tools project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 431578
  Show dependency tree
 
Reported: 2012-10-11 04:15 UTC by Ryan Hill (RETIRED)
Modified: 2022-02-23 08:49 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Hill (RETIRED) gentoo-dev 2012-10-11 04:15:32 UTC
In bash 4 COMP_WORDBREAKS is defined as "'><=;|&(: which breaks completions with a package atom starting with =.  For example,

`equery files =app<tab>`

bash-3:
${COMP_WORDS[COMP_CWORD-1]}="files"
${COMP_WORDS[COMP_CWORD]}="=app"

bash-4:
${COMP_WORDS[COMP_CWORD-1]}="="
${COMP_WORDS[COMP_CWORD]}="app"

From what I understand, we should be able to use _get_comp_words_by_ref to work around this, but I'm having trouble finding good documentation.  See http://www.spinics.net/lists/git/msg146922.html for an example.