Mercurial > hg > octave-avbm
changeset 11723:b785c56df58f release-3-0-x
run.m: fix check for file existence
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Mon, 31 Mar 2008 16:11:00 -0400 |
parents | 1b9fc670dce0 |
children | 8959d5f5c2b1 |
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-28 Thomas Weber <thomas.weber.mail@gmail.com> * miscellaneous/tempdir.m: Use correct function name in texinfo
--- 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 ())");