octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #45231] The run command does not return back t


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #45231] The run command does not return back to the originating directory
Date: Tue, 02 Jun 2015 13:45:13 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.0.1

Update of bug #45231 (project octave):

                  Status:            Works For Me => Confirmed              

    _______________________________________________________

Follow-up Comment #4:

Ok, that makes sense.

Can you see if the following change works for you instead:


diff --git a/scripts/miscellaneous/run.m b/scripts/miscellaneous/run.m
--- a/scripts/miscellaneous/run.m
+++ b/scripts/miscellaneous/run.m
@@ -61,7 +61,7 @@ function run (script)
   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),


Some work was done recently to make the make_absolute_filename better on
Windows paths, and that should probably be used in this situation.

I can delete attachments, but we usually just ignore them.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45231>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]