comparison 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
comparison
equal deleted inserted replaced
5871:b9fd54407c8d 5872:44f24cf66b95
33 #include <sys/types.h> 33 #include <sys/types.h>
34 #endif 34 #endif
35 #include <unistd.h> 35 #include <unistd.h>
36 #endif 36 #endif
37 37
38 #include "file-ops.h"
38 #include "lo-error.h" 39 #include "lo-error.h"
39 #include "pathlen.h" 40 #include "pathlen.h"
40 41
41 std::string 42 std::string
42 octave_getcwd (void) 43 octave_getcwd (void)
62 63
63 return retval; 64 return retval;
64 } 65 }
65 66
66 int 67 int
67 octave_chdir (const std::string& path) 68 octave_chdir (const std::string& path_arg)
68 { 69 {
70 std::string path = file_ops::tilde_expand (path_arg);
71
69 #if defined (__EMX__) 72 #if defined (__EMX__)
70 int retval = -1; 73 int retval = -1;
71 74
72 char *tmp_path = strsave (path.c_str ()); 75 char *tmp_path = strsave (path.c_str ());
73 76