changeset 20286:c4f436483e49 stable

run.m: Return to original directory on Windows (bug #45231). * run.m: Use make_absolute_filename, rather than canonicalize_file_name, to get the original working directory in standard form.
author Rik <rik@octave.org>
date Tue, 09 Jun 2015 16:16:44 -0700
parents 209ee4a730f6
children 7fa170cc14fe
files scripts/miscellaneous/run.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/miscellaneous/run.m	Tue Jun 09 16:10:59 2015 -0700
+++ b/scripts/miscellaneous/run.m	Tue Jun 09 16:16:44 2015 -0700
@@ -61,7 +61,7 @@
   if (! isempty (d))
     if (exist (d, "dir"))
       startdir = pwd ();
-      d = canonicalize_file_name (d);
+      d = make_absolute_filename (d);
       unwind_protect
         cd (d);
         evalin ("caller", sprintf ("source ('%s%s');", f, ext),