comparison src/oct-hist.cc @ 7272:05ee52d7fad6

[project @ 2007-12-10 07:06:00 by jwe]
author jwe
date Mon, 10 Dec 2007 07:06:01 +0000
parents e8a3e3e33490
children 5b4d278ec828
comparison
equal deleted inserted replaced
7271:c18512d0ddb6 7272:05ee52d7fad6
85 85
86 if (! env_file.empty ()) 86 if (! env_file.empty ())
87 file = env_file; 87 file = env_file;
88 88
89 if (file.empty ()) 89 if (file.empty ())
90 { 90 file = file_ops::concat (octave_env::get_home_directory (),
91 std::string home_dir = octave_env::get_home_directory (); 91 ".octave_hist");
92
93 if (! home_dir.empty ())
94 {
95 file = home_dir;
96 if (! file_ops::is_dir_sep (file[file.length()-1]))
97 file += file_ops::dir_sep_char;
98 file.append (".octave_hist");
99 }
100 else
101 file = ".octave_hist";
102 }
103 92
104 return file; 93 return file;
105 } 94 }
106 95
107 // Where history is saved. 96 // Where history is saved.