Mercurial > hg > octave-terminal
changeset 11600:54b0bf8abe50 release-3-0-x
[3-0-0-branch @ 2007-12-29 00:30:31 by jwe]
author | jwe |
---|---|
date | Sat, 29 Dec 2007 00:30:31 +0000 |
parents | a18fac5c789d |
children | 3706ac0750f1 |
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 Kai Habel <kai.habel@gmx.de> * plot/pcolor.m: Swap 1st and 2nd argument in call to meshgrid.
--- 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