|
From: | Rik |
Subject: | [Octave-bug-tracker] [bug #43426] run doesn't return to original working directory if using relative path |
Date: | Mon, 27 Oct 2014 04:16:35 +0000 |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0 |
Update of bug #43426 (project octave): Status: Patch Submitted => Fixed Open/Closed: Open => Closed _______________________________________________________ Follow-up Comment #8: I checked in a fix here (http://hg.savannah.gnu.org/hgweb/octave/rev/a834b3151c7e). Instead of creating a third variable holding a directory name I used canonicalize_file_name() to make the relative directory name into an absolute one. With this in place strcmp to pwd works because pwd() also returns an absolute name. I also renamed the original directory startdir instead of wd to be a little clearer. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?43426> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |