diff scripts/plot/__gnuplot_print__.m @ 11252:d048ce3f7cef

Replace "delete" with "del" in DOS shell commands.
author Michael Goffioul <michael.goffioul@gmail.com>
date Sun, 14 Nov 2010 22:01:45 +0000
parents a44f979a35ce
children fd0a3ac60b0e
line wrap: on
line diff
--- a/scripts/plot/__gnuplot_print__.m
+++ b/scripts/plot/__gnuplot_print__.m
@@ -57,7 +57,7 @@
       tmp_file = strcat (tmpnam (), ".eps");
       eps_drawnow (opts, tmp_file, gp_opts);
       if (dos_shell)
-        cleanup = sprintf (" & delete %s", tmp_file);
+        cleanup = sprintf (" & del %s", strrep (tmp_file, '/', '\'));
       else
         cleanup = sprintf (" ; rm %s", tmp_file);
       endif
@@ -123,7 +123,7 @@
       cmd = sprintf ("%s", cmd_gs);
     endif
     if (dos_shell)
-      cmd = sprintf ("%s & delete %s", cmd, opts.ghostscript.source);
+      cmd = sprintf ("%s & del %s", cmd, strrep (opts.ghostscript.source, '/', '\'));
     else
       cmd = sprintf ("%s ; rm %s", cmd, opts.ghostscript.source);
     endif