changeset 6176:430cb65c29ce

[project @ 2006-11-16 18:45:49 by jwe]
author jwe
date Thu, 16 Nov 2006 18:45:49 +0000
parents a4ecbadedc17
children 6ac0c826459e
files src/ChangeLog src/oct-hist.cc
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu Nov 16 18:19:20 2006 +0000
+++ b/src/ChangeLog	Thu Nov 16 18:45:49 2006 +0000
@@ -1,3 +1,9 @@
+2006-11-16  Michael Goffioul  <michael.goffioul@swing.be>
+
+	* oct-hist.cc (default_history_file): Instead of appending
+	"/.octave_hist", append directory separator (but only if
+	necessary), then ".octave_hist".
+
 2006-11-16  John W. Eaton  <jwe@octave.org>
 
 	* data.cc (Fresize): Fix doc string.
--- a/src/oct-hist.cc	Thu Nov 16 18:19:20 2006 +0000
+++ b/src/oct-hist.cc	Thu Nov 16 18:45:49 2006 +0000
@@ -93,7 +93,9 @@
       if (! home_dir.empty ())
 	{
 	  file = home_dir;
-	  file.append ("/.octave_hist");
+	  if (! file_ops::is_dir_sep (file[file.length()-1]))
+	    file.push_back (file_ops::dir_sep_char);
+	  file.append (".octave_hist");
 	}
       else
 	file = ".octave_hist";