FarManager
FarManager copied to clipboard
Incorrect processing of the `set` command when using string substitution
Far Manager version
3.0.6389
OS version
6.1.7601
Other software
Steps to reproduce
The value of the variable assigned when using the text substitute expression in the string is displayed incorrectly. Sample code:
set "_var1=This is the value of the variable1"
set "_var2=%_var1:variable1=variable2%"
When requesting the values of variables via the set _var command, the following will be output:
set _var
_var1=This is the value of the variable1
_var2=%_var1:variable1=variable2%
When requesting a value via the echo command, the value will be displayed correctly:
echo %_var1%
This is the value of the variable1
echo %_var2%
This is the value of the variable2
Expected behavior
It should be like in the screenshot of the command line window:
Actual behavior
Screenshot of the Far: