diff options
author | Erich Eckner <git@eckner.net> | 2018-01-09 15:26:26 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-01-09 15:29:34 +0100 |
commit | a3eb0bec678c37470c8f401d9ba3f0459ebef28f (patch) | |
tree | 8c0d5fbd91f88d4192977e41d329f4f679258c16 | |
parent | 6f5ae98c0ba75b220eb6ef4b0e8bbc8cc27af9f8 (diff) | |
download | units-a3eb0bec678c37470c8f401d9ba3f0459ebef28f.tar.xz |
mystringlistunit.pas: tMyStringList.unfoldMacros: shellSubst eher ausführen
-rw-r--r-- | mystringlistunit.pas | 16 |
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]; |