$0 is not changed by functions so this could not have worked (strange it *did* work on Fedora, I still have to find out why).