# HG changeset patch # User Ben Abbott # Date 1206994209 14400 # Node ID 2f0920d1edd4c61cb1683cfc75a14ff92fa334db # Parent 4fbaba9abec16cc2838a6ec3faaa7aed3b0291de run.m: fix check for file existence diff -r 4fbaba9abec1 -r 2f0920d1edd4 scripts/ChangeLog --- a/scripts/ChangeLog Fri Mar 28 15:53:09 2008 -0400 +++ b/scripts/ChangeLog Mon Mar 31 16:10:09 2008 -0400 @@ -1,3 +1,7 @@ +2008-03-31 Dmitri A. Sergatskov + + * miscellaneous/run.m: Fix check for existence of file. + 2008-03-27 Jaroslav Hajek * general/lookup.m: Remove (lookup moved to DLD-FUNCTIONS). diff -r 4fbaba9abec1 -r 2f0920d1edd4 scripts/miscellaneous/run.m --- a/scripts/miscellaneous/run.m Fri Mar 28 15:53:09 2008 -0400 +++ b/scripts/miscellaneous/run.m Mon Mar 31 16:10:09 2008 -0400 @@ -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 ())");