> Presumeably we just read the environment > variable HOME and replace the tilde with this That's usually the first attempt at tilde substitution. I think the really complete programs, if $HOME is not set, might fall back to doing a getpwuid(getuid()) and using the pw_dir field of the returned structure. -----Carl