Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 451903 Details for
Bug 598480
app-admin/eselect-1.4.5: `# LANG=': not a valid identifier
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for libs/config.bash.in
0001-Ignore-comment-lines-when-parsing-config-files.patch (text/plain), 1.06 KB, created by
Ulrich Müller
on 2016-10-30 08:05:36 UTC
(
hide
)
Description:
Patch for libs/config.bash.in
Filename:
MIME Type:
Creator:
Ulrich Müller
Created:
2016-10-30 08:05:36 UTC
Size:
1.06 KB
patch
obsolete
>From a121df41e723306bdd925098ebd4a8939ac188fe Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm@gentoo.org> >Date: Sun, 30 Oct 2016 01:09:10 +0200 >Subject: [PATCH] Ignore comment lines when parsing config files. > >* libs/config.bash.in (store_config): Ignore comment lines in >config files and make parsing more robust, bug 598480. >--- > libs/config.bash.in | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > >diff --git a/libs/config.bash.in b/libs/config.bash.in >index 80ef798..9fbecf0 100644 >--- a/libs/config.bash.in >+++ b/libs/config.bash.in >@@ -57,9 +57,11 @@ store_config() { > # parse the names of all settings in the file > local ifs_save=${IFS} IFS=$'\n' > for line in ${content} ; do >- [[ ${line/=/} != ${line} ]] || continue >- line=${line/=*/} >- local ${line}="" >+ line=${line##*([[:space:]])} >+ [[ ${line} != "#"* && ${line} == *=* ]] || continue >+ line=${line%%=*} >+ # assignment will fail if ${line} is not a valid identifier >+ local ${line}="" || continue > vars=(${vars[@]} ${line}) > done > IFS=${ifs_save} >-- >2.10.1 >
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 598480
: 451903