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

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

[Octave-bug-tracker] [bug #48351] run does not return to original workin


From: Jens Lippel
Subject: [Octave-bug-tracker] [bug #48351] run does not return to original working directory
Date: Thu, 30 Jun 2016 13:24:09 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36

Follow-up Comment #1, bug #48351 (project octave):

Sorry, wrong usage of Markup in original submission, again:
if run is used with path and file e.g.

run('../toBeRunned.m'); 

it never returns to the original working directory due to a bug in run.m line
70:

        if (strcmp (d, pwd ()))
          cd (startdir);
        endif

The path in 'd' contains a tailing file separator '\' while pwd() does not.
Therefore the condition is false, cd(startdir) is not executed.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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