Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 892658 Details for
Bug 931671
app-shells/gentoo-bashcomp: fix portageq envvar warnings and improve completion results
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix variables selected for completion
0002-protageq-envvar-fix-variables-selected-for-completio.patch (text/plain), 1.26 KB, created by
Lucio Sauer
on 2024-05-10 13:09:52 UTC
(
hide
)
Description:
Patch to fix variables selected for completion
Filename:
MIME Type:
Creator:
Lucio Sauer
Created:
2024-05-10 13:09:52 UTC
Size:
1.26 KB
patch
obsolete
>From 653eb12d3e7fd76287cb2a3e53ebbf29c78cc2ca Mon Sep 17 00:00:00 2001 >From: Lucio Sauer <watermanpaint@posteo.net> >Date: Fri, 10 May 2024 14:07:16 +0200 >Subject: [PATCH 2/2] protageq envvar: fix variables selected for completion > >With lines like VAR="foo" BAZ="1 2 3", \(.*\)=".*$ not only matches VAR, >but also VAR="foo" BAZ. >This applies at line ^USE=.*, where the regular USE flags are followed >by a list of all present USE_EXPAND variables together with their >respective values. > >The current sed invocation also ignores environment variables that start >with a lowercase letter, such as gl_cv_compiler_check_decl_option. > >Closes: >Signed-off-by: Lucio Sauer <watermanpaint@posteo.net> >--- > completions/portageq | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/completions/portageq b/completions/portageq >index a8a113b..7775cc4 100644 >--- a/completions/portageq >+++ b/completions/portageq >@@ -48,7 +48,7 @@ _portageq() { > # this also isn't the fastest, but I welcome an alternative method > envvar) > COMPREPLY=($(compgen -W "$(env -i PATH="${PATH}" emerge -v --info | \ >- sed -n -e '/^[[:upper:]].*=".*"/s/^\(.*\)=".*$/\1/p')" -- ${cur})) >+ cut -s -d = -f 1)" -- ${cur})) > ;; > > *v@(isible|ersion)|match) >-- >2.43.2 >
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 931671
:
892657
|
892658
|
892659