Bug 436977 - Eclipse prepends system paths to PATH
Summary: Eclipse prepends system paths to PATH
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build-managed (show other bugs)
Version: 8.3.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-09 11:33 EDT by Nobody - feel free to take it CLA
Modified: 2020-09-04 15:25 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nobody - feel free to take it CLA 2014-06-09 11:33:14 EDT
How to reproduce: 
1) In the project's preferences open C/C++-Build/Environment,
2) Click 'Add...',
3) Add the PATH variable and enter a value like '${INSTALL_PREFIX}/bin:${PATH}',
4) Confirm

Expected result: 
Eclipse respects the entered value as it was entered.

Actual result: 
Eclipse always prepends system directories before the entered PATH, such as /usr/bin:/bin etc. The user entered ${PATH} at the end of his/her input for a good reason - to give his/her own builds precedence over the system's tools.
Otherwise he/she would have checked 'Append variables to native environment'.
Checking 'Append variables' or 'Replace native environment...' has no impact on
this behaviour.