Mercurial > hg > octave-shane
changeset 7672:2f0920d1edd4
run.m: fix check for file existence
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Mon, 31 Mar 2008 16:10:09 -0400 |
parents | 4fbaba9abec1 |
children | e0c930dda642 |
files | scripts/ChangeLog scripts/miscellaneous/run.m |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2008-03-31 Dmitri A. Sergatskov <dasergatskov@gmail.com> + + * miscellaneous/run.m: Fix check for existence of file. + 2008-03-27 Jaroslav Hajek <highegg@gmail.com> * general/lookup.m: Remove (lookup moved to DLD-FUNCTIONS).
--- a/scripts/miscellaneous/run.m +++ b/scripts/miscellaneous/run.m @@ -40,7 +40,7 @@ wd = pwd (); unwind_protect cd (d); - if (! exist (s, "file") || ! strcmp (ext, ".m")) + if (! exist (f, "file") || ! strcmp (ext, ".m")) error ("run: file must exist and be a valid Octave script file"); endif evalin ("caller", [f, ";"], "rethrow (lasterror ())");