changeset 7340:615860ec1be0

[project @ 2007-12-29 00:30:20 by jwe]
author jwe
date Sat, 29 Dec 2007 00:30:20 +0000
parents 767faa9dbf3e
children 72b0181c41f1
files scripts/ChangeLog scripts/miscellaneous/edit.m
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Fri Dec 28 23:29:17 2007 +0000
+++ b/scripts/ChangeLog	Sat Dec 29 00:30:20 2007 +0000
@@ -1,3 +1,8 @@
+2007-12-28  John W. Eaton  <jwe@octave.org>
+
+	* miscellaneous/edit.m: Use strcat instead of fullfile to add file
+	extensions.
+
 2007-12-28  David Bateman  <dbateman@free.fr>
 
 	* ezcontourf.m, ezcontour.m, ezmeshc.m, ezmesh.m, ezplot3.m,
--- a/scripts/miscellaneous/edit.m	Fri Dec 28 23:29:17 2007 +0000
+++ b/scripts/miscellaneous/edit.m	Sat Dec 29 00:30:20 2007 +0000
@@ -192,9 +192,9 @@
     path = file_in_loadpath (file);
   else
     ## Otherwise try file.cc, and if that fails, default to file.m.
-    path = file_in_loadpath (fullfile (file, ".cc"));
+    path = file_in_loadpath (strcat (file, ".cc"));
     if (isempty (path))
-      file = fullfile (file, ".m");
+      file = strcat (file, ".m");
       path = file_in_loadpath (file);
     endif
   endif