|
| From: | Jens Lippel |
| Subject: | [Octave-bug-tracker] [bug #48351] run does not return to original working directory |
| Date: | Thu, 30 Jun 2016 13:20:27 +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 |
URL:
<http://savannah.gnu.org/bugs/?48351>
Summary: run does not return to original working directory
Project: GNU Octave
Submitted by: jens
Submitted on: Thu 30 Jun 2016 01:20:24 PM GMT
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.0.1
Operating System: Microsoft Windows
_______________________________________________________
Details:
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
-verbatim
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/
| [Prev in Thread] | Current Thread | [Next in Thread] |