View Issue Details

IDProjectCategoryView StatusLast Update
0002274WishesCommand Line/Executepublic2013-01-25 10:06
ReporterDimaX Assigned To 
PrioritylowSeverityfeatureReproducibilityN/A
Status newResolutionopen 
Platformx64OSWindowsOS Version7
Product Version3.0 
Summary0002274: Add support for environment variable substitution in 'set' command
DescriptionRunning from the command line: 'set PATH=%PATH:bin=%' sets PATH to '%PATH:bin=%' instead of replacing all 'bin's to '' in %PATH% as cmd.exe does.

 

Steps To Reproducein FAR:
> set PATH=%PATH:bin=%
> path
PATH=%PATH:bin=%

in cmd.exe
> set PATH=%PATH:bin=%
> path
path=C:\Windows\..
Additional InformationBy the way, my original idea was to provide environvent customization using FarMenu.ini:
: Cygwin - works good
    @set path=D:\devtools\cygwin\bin;%path%

: noCygwin - does not work
    set PATH=%PATH:D:\\devtools\\cygwin\\bin=%"
TagsNo tags attached.
Build

Activities

DrKnS

2013-01-25 09:59

administrator   bugnote:0010124

1. Branches v1.75 and v2 are closed and not supported anymore.

2. Help - Operating system commands:
-----------------------------------------------
Far Manager by itself processes the following operating system commands:

SET variable=[string]
Set environment variable "variable" to the value "string". If "string" is not specified, the environment variable "variable" will be removed.
-----------------------------------------------

So, only described above syntax is supported. Nobody promised to support all features of command processor.

Issue History

Date Modified Username Field Change
2013-01-25 00:25 DimaX New Issue
2013-01-25 09:59 DrKnS Note Added: 0010124
2013-01-25 10:00 DrKnS Project Far Manager => Wishes
2013-01-25 10:06 DrKnS Priority high => low
2013-01-25 10:06 DrKnS Severity major => feature
2013-01-25 10:06 DrKnS Reproducibility always => N/A
2013-01-25 10:06 DrKnS Category Command Line/Execute => _Common
2013-01-25 10:06 DrKnS Product Version 2.0 => 3.0
2013-01-25 10:06 DrKnS Summary Native BATH syntax does not work as expected (incorrect command interpretation) => Add support for environment variable substitution in 'set' command
2013-01-25 10:06 DrKnS Description Updated
2013-01-25 10:06 DrKnS Category _Common => Command Line/Execute