Bug 460558 - workspace environment PATH with variables fails to expand after edit
Summary: workspace environment PATH with variables fails to expand after edit
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 8.6.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-22 18:34 EST by Seven Watt CLA
Modified: 2020-09-04 15:22 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Seven Watt CLA 2015-02-22 18:34:42 EST
1. Window -> Preferences -> C/C++ -> Build -> Environment
2. Press Add, Add envvar: name=PATH, value=C:\tools;%PATH%
3. Press OK
4. build a project , success, because it can find make.
5. Window -> Preferences -> C/C++ -> Build -> Environment
6. Press Edit (non need to modify string), Press OK
7. Press OK to close preferences.
8. build project, fails because make is not found.

Upon inspection of the PATH var in the project with Alt-Enter on the build/environment page it can be seen that i the first case %PATH% is expanded with the windows full OS path, in the secod case it is not expanded and is identical to the entered field, with %PATH% litarally.

The same happens with variables like ${BUILDTOOL}.