summaryrefslogtreecommitdiff
path: root/mystringlistunit.pas
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-01-09 15:26:26 +0100
committerErich Eckner <git@eckner.net>2018-01-09 15:29:34 +0100
commita3eb0bec678c37470c8f401d9ba3f0459ebef28f (patch)
tree8c0d5fbd91f88d4192977e41d329f4f679258c16 /mystringlistunit.pas
parent6f5ae98c0ba75b220eb6ef4b0e8bbc8cc27af9f8 (diff)
downloadunits-a3eb0bec678c37470c8f401d9ba3f0459ebef28f.tar.xz
mystringlistunit.pas: tMyStringList.unfoldMacros: shellSubst eher ausführen
Diffstat (limited to 'mystringlistunit.pas')
-rw-r--r--mystringlistunit.pas16
1 files changed, 8 insertions, 8 deletions
diff --git a/mystringlistunit.pas b/mystringlistunit.pas
index 98fdb07..3f7fdf4 100644
--- a/mystringlistunit.pas
+++ b/mystringlistunit.pas
@@ -463,6 +463,14 @@ begin
end;
for i:=0 to count-1 do begin // Shellvariablen auswerten
+ s:=systemunit.shellSubst(self[i]);
+ if s<>self[i] then begin
+ wasGefunden:=true;
+ self[i]:=s;
+ end;
+ end;
+
+ for i:=0 to count-1 do begin // Shellexpansionen auswerten
s:=shellExpand(self[i]);
if s<>self[i] then begin
wasGefunden:=true;
@@ -496,14 +504,6 @@ begin
end;
if wasGefunden then continue;
- for i:=0 to count-1 do begin // Shellvariablen auswerten
- s:=shellSubst(self[i]);
- if s<>self[i] then begin
- wasGefunden:=true;
- self[i]:=s;
- end;
- end;
-
i:=0;
while i<count do begin // Schleifen ausrollen
s:=self[i];