Mercurial > hg > octave-avbm
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 +++ b/scripts/ChangeLog @@ -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 +++ b/scripts/miscellaneous/edit.m @@ -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