diff scripts/miscellaneous/edit.m @ 19314:98a18bc3208e

Use cd rather than chdir in core Octave code. * edit.m, __run_test_suite__.m: Replace chdir with cd in 4 instances.
author Rik <rik@octave.org>
date Wed, 22 Oct 2014 11:37:00 -0700
parents 9ac2357f19bc
children 0e1f5a750d00
line wrap: on
line diff
--- a/scripts/miscellaneous/edit.m	Wed Oct 22 11:05:26 2014 -0700
+++ b/scripts/miscellaneous/edit.m	Wed Oct 22 11:37:00 2014 -0700
@@ -221,10 +221,10 @@
     if (exist (FUNCTION.HOME, "dir") == 7)
       curr_dir = pwd ();
       unwind_protect
-        chdir (FUNCTION.HOME);
+        cd (FUNCTION.HOME);
         do_edit (FUNCTION.EDITOR, "", FUNCTION.MODE);
       unwind_protect_cleanup
-        chdir (curr_dir);
+        cd (curr_dir);
       end_unwind_protect
     else
       do_edit (FUNCTION.EDITOR, "", FUNCTION.MODE);