Selaa lähdekoodia

* quote assembly filenames in Unix script, fixes sh errors with smartlinked small filenames like unitname(1), etc

git-svn-id: trunk@37917 -
Károly Balogh 7 vuotta sitten
vanhempi
commit
3dda26b3b5
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      compiler/cscript.pas

+ 2 - 2
compiler/cscript.pas

@@ -359,9 +359,9 @@ end;
 Procedure TAsmScriptUnix.AddAsmCommand (Const Command, Options,FileName : TCmdStr);
 Procedure TAsmScriptUnix.AddAsmCommand (Const Command, Options,FileName : TCmdStr);
 begin
 begin
   if FileName<>'' then
   if FileName<>'' then
-   Add('echo Assembling '+ScriptFixFileName(FileName));
+   Add('echo Assembling '+maybequoted(ScriptFixFileName(FileName)));
   Add(maybequoted(command)+' '+Options);
   Add(maybequoted(command)+' '+Options);
-  Add('if [ $? != 0 ]; then DoExitAsm '+ScriptFixFileName(FileName)+'; fi');
+  Add('if [ $? != 0 ]; then DoExitAsm '+maybequoted(ScriptFixFileName(FileName))+'; fi');
 end;
 end;