This seems to be a regression: eval('testfun') works if testfun.m is a function, but fails with something like error: `testfun' undefined near line 6 column 1 if testfun.m is a script. Tested with current hg default branch. Cheers, Moritz