diff liboctave/lo-sysdep.cc @ 5872:44f24cf66b95

[project @ 2006-06-30 18:19:20 by jwe]
author jwe
date Fri, 30 Jun 2006 18:19:42 +0000
parents 4c8a2e4e0717
children 174cfaa0c4af
line wrap: on
line diff
--- a/liboctave/lo-sysdep.cc	Fri Jun 30 16:48:40 2006 +0000
+++ b/liboctave/lo-sysdep.cc	Fri Jun 30 18:19:42 2006 +0000
@@ -35,6 +35,7 @@
 #include <unistd.h>
 #endif
 
+#include "file-ops.h"
 #include "lo-error.h"
 #include "pathlen.h"
 
@@ -64,8 +65,10 @@
 }
 
 int
-octave_chdir (const std::string& path)
+octave_chdir (const std::string& path_arg)
 {
+  std::string path = file_ops::tilde_expand (path_arg);
+
 #if defined (__EMX__)
   int retval = -1;