I found the problem is that getpath.c searches the environment PATH when argv[0] is a relative path. The '~' shell expansion is not honoured the moral is use $HOME/bin etc in your PATH changes not ~/bin etc. -- Robin Becker