Browse Source

fixed support for filenames with spaces in exec

git-svn-id: trunk@1738 -
olle 20 years ago
parent
commit
0fde736720
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/macos/dos.pp

+ 1 - 1
rtl/macos/dos.pp

@@ -299,7 +299,7 @@ var
 Begin
   {Make ToolServers working directory in sync with our working directory}
   PathArgToFullPath(':', wdpath);
-  wdpath:= 'Directory ' + wdpath;
+  wdpath:= 'Directory ''' + wdpath + '''';
   err:= ExecuteToolserverScript(PChar(wdpath), LastDosExitCode);
     {TODO Only change path when actually needed. But this requires some
      change counter to be incremented each time wd is changed. }