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

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

[Octave-bug-tracker] [bug #43426] run doesn't return to original working


From: Andreas Weber
Subject: [Octave-bug-tracker] [bug #43426] run doesn't return to original working directory if using relative path
Date: Sat, 18 Oct 2014 17:00:28 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.1.0

Follow-up Comment #5, bug #43426 (project octave):

Yes, I try to mimic that Matlab behaviour which you describe in comment #4.
Sorry If I was unclear.

When run("dir1/file.m") is called, the working directory is changed to dir1
before file.m gets executed.

If the script called with run doesn't change the working directory (pwd before
and pwd after call of script are equal) then the working directory previous to
run should be restored.

I've attached another test case to show this better. The first and second
output should show the path where show_runbug.m resides in, the third should
show your home dir.

(Btw, I accidentally left "keyboard" in the pasted code snippet :-D )


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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