Prevent recursion in environment variable expansion

Authored by mwolff on May 2 2020, 7:56 PM.

Description

Prevent recursion in environment variable expansion

Ensure that we don't get stuck in an endless recursion while
expanding variables. Handle both the simple case of VAR=$VAR
but also more complex scenarios such as VAR1=$VAR2; VAR2=$VAR2.

Based on the patch by David Redondo and input from Igor Kushnir,
see https://invent.kde.org/kde/kdevelop/-/merge_requests/125

Details

Committed
mwolffMay 2 2020, 7:56 PM
Parents
R32:beaf5664943a: Merge branch '5.5'
Branches
Unknown
Tags
Unknown