I have two different, but identically-named functions, in two different directories:
/A/foo.m /B/foo.m
Additionally, I have a directory
/C
which is not on my path, and is not the current directory.
However, when I run:
cd('/');copyfile('/A/foo.m", "/C");cd('/C');foo;cd('/');rehash path;copyfile('/B/foo.m", "/C");cd('/C');foo;
the same "foo" is run both times.
Best Answer