in reply to Re: Is it possible to localize the stat/lstat cache?
in thread Is it possible to localize the stat/lstat cache?

The problem is that the function needs to continue after these calls to the other functions. They are exception cases (in the sense that they are rare), but they aren't branches that don't need to return and continue from there.

For example (where ... could be any set of tests, including one or more -X _ tests, and each function call could potentially need to use stat/lstat in it):

if (...) { function1(); } if (...) { function2(); } if (...) { function3(); } # etc.