mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: Use '$' for environment variable definition
This commit is contained in:
parent
e96061c203
commit
5c3e3ca1bb
1 changed files with 4 additions and 0 deletions
|
|
@ -431,7 +431,11 @@ begin
|
|||
for I:= 1 to X do
|
||||
begin
|
||||
EnvVarList.Add(mbGetEnvironmentString(I));
|
||||
{$IFDEF UNIX}
|
||||
Result:= StringReplace(Result, '$'+EnvVarList.Names[I-1], EnvVarList.ValueFromIndex[I-1], [rfReplaceAll, rfIgnoreCase]);
|
||||
{$ELSE}
|
||||
Result:= StringReplace(Result, '%'+EnvVarList.Names[I-1]+'%', EnvVarList.ValueFromIndex[I-1], [rfReplaceAll, rfIgnoreCase]);
|
||||
{$ENDIF}
|
||||
end;
|
||||
FreeAndNil(EnvVarList);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue