While working in a small routine for finding a common directory path, the same function generated distinct results when run in OSx (as opposed to Linux, my system). The SO question that revealed this issue is here
Will generate the correct answer in Linux:
But a wrong result in OSx:
Screenshots of the two results can be found in the SO discussion in the link above.