I can do that; what do you think of @kballard's suggestion to instead break out the parsing into a private function that does not actually read $PATH, and test that instead?