Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect processing of the set command when using string substitution #879

Open
RestorerZ opened this issue Nov 10, 2024 · 1 comment
Open
Labels

Comments

@RestorerZ
Copy link

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 RestorerZ added the bug label Nov 10, 2024
@HamRusTal
Copy link
Contributor

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

Forum topic has been merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants