|
| From: | Mike Miller |
| Subject: | [Octave-bug-tracker] [bug #54718] __run_test_suite__ doesn't preserve start or working directory |
| Date: | Tue, 25 Sep 2018 17:25:52 -0400 (EDT) |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36 |
Follow-up Comment #11, bug #54718 (project octave):
Yes, I can now reproduce this with a much narrower example. Run the following
as a script file or as a one-liner at the prompt:
fn = fullfile (__octave_config_info__ ("octtestsdir"), "libinterp", "corefcn",
"debug.cc-tst");
chdir ("/tmp");
test (fn);
chdir (get_home_directory ());
pwd ()
Inside the script or one-liner, the 'pwd' at the end is reported correctly as
my home directory. But after returning to the Octave prompt the current
directory is set back to /tmp.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?54718>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |