FarManager icon indicating copy to clipboard operation
FarManager copied to clipboard

Incorrect processing of the `set` command when using string substitution

Open RestorerZ opened this issue 1 year ago • 1 comments

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: cmd-cor-set

Actual behavior

Screenshot of the Far: far-err-set

RestorerZ avatar Nov 10 '24 17:11 RestorerZ

Описание по‐русски

Forum topic has been merged

HamRusTal avatar Nov 11 '24 02:11 HamRusTal