Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39312 - varexpand() has limited support for variables referenced without {}
Summary: varexpand() has limited support for variables referenced without {}
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-01-24 22:22 UTC by Jason Stubbs (RETIRED)
Modified: 2004-02-08 17:55 UTC (History)
0 users

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


Attachments
More support for unbraced variables (portage-2.0.50_pre19-varexpand.patch,707 bytes, patch)
2004-01-24 22:26 UTC, Jason Stubbs (RETIRED)
Details | Diff
Same as first one except with diff -u instead of plain diff (portage-2.0.50_pre19-varexpand.patch,1.03 KB, patch)
2004-01-24 22:32 UTC, Jason Stubbs (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Stubbs (RETIRED) gentoo-dev 2004-01-24 22:22:20 UTC
vardepend() currently handles unbraced variable references by reading up to the next whitespace. This causes $FOO$BAR to be interpreted as one variable named FOO$BAR instead of two named FOO and BAR. It also fails if an unbraced variable is at the end of a line.
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2004-01-24 22:26:08 UTC
Created attachment 24363 [details, diff]
More support for unbraced variables

Variable names are identified by reading up until the first invalid character
or end-of-string. This patch will also cause vardepend to return "" on invalid
braced var names instead of substituting "".
Comment 2 Jason Stubbs (RETIRED) gentoo-dev 2004-01-24 22:27:21 UTC
s/vardepend/varexpand/ ^^
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2004-01-24 22:32:50 UTC
Created attachment 24364 [details, diff]
Same as first one except with diff -u instead of plain diff
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2004-02-08 17:55:22 UTC
supposed to be fixed in 2.0.50 which is stable now. If this bug is not fixed please reopen.