Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 198100 Details for
Bug 276901
app-shells/bash-completion not prefix aware
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
modified patch with extra label on all absolute paths
bash-completion-1.0-gentoo.patch (text/plain), 2.13 KB, created by
Thomas Burkard
on 2009-07-15 20:46:07 UTC
(
hide
)
Description:
modified patch with extra label on all absolute paths
Filename:
MIME Type:
Creator:
Thomas Burkard
Created:
2009-07-15 20:46:07 UTC
Size:
2.13 KB
patch
obsolete
>Gentoo does something different than upstream. This patch allows multiple >directories to be sourced. Upstream is trying to come to a consensus on this >issue and it is expected to change. Therefore it is a moot point to send this >upstream now. > >--- bash_completion.sh.orig 2009-04-08 23:14:34.736632335 -0500 >+++ bash_completion.sh 2009-04-08 23:17:59.670875954 -0500 >@@ -4,9 +4,46 @@ > # Check for recent enough version of bash. > bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.} > if [ $bmajor -eq 2 -a $bminor '>' 04 ] || [ $bmajor -gt 2 ]; then >- if [ -r /etc/bash_completion ]; then >- # Source completion code. >- . /etc/bash_completion >- fi >+ _load_completions() { >+ declare f x loaded_pre=false >+ for f; do >+ if [[ -f $f ]]; then >+ # Prevent loading base twice, initially and via glob >+ if $loaded_pre && [[ $f == */base ]]; then >+ continue >+ fi >+ >+ # Some modules, including base, depend on the definitions >+ # in .pre. See the ebuild for how this is created. >+ if ! $loaded_pre; then >+ if [[ ${BASH_COMPLETION-unset} == unset ]]; then >+ BASH_COMPLETION=:INSTALLROOT:usr/share/bash-completion/base >+ fi >+ source :INSTALLROOT:usr/share/bash-completion/.pre >+ loaded_pre=true >+ fi >+ >+ source "$f" >+ fi >+ done >+ >+ # Clean up >+ $loaded_pre && source :INSTALLROOT:usr/share/bash-completion/.post >+ unset -f _load_completions # not designed to be called more than once >+ } >+ >+ # 1. Load base, if eselected. This was previously known as >+ # /etc/bash_completion >+ # 2. Load completion modules, maintained via eselect bashcomp --global >+ # 3. Load user completion modules, maintained via eselect bashcomp >+ # 4. Load user completion file last, overrides modules at user discretion >+ # This order is subject to change once upstream decides on something. >+ _load_completions \ >+ :INSTALLROOT:etc/bash_completion.d/base \ >+ ~/.bash_completion.d/base \ >+ :INSTALLROOT:etc/bash_completion.d/* \ >+ ~/.bash_completion.d/* \ >+ ~/.bash_completion > fi >+ > unset bash bminor bmajor
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 276901
:
198100
|
198101
|
198104
|
198945
|
198947