> Probably =~ does not expand to =$HOME. > Please test > echo ~ > and > echo =~ Thanks. I've just learned something. In Bash, tilde expansion only happens with variable assignments: In foo=~/bar the tilde gets expanded, but in --foo=~/bar this is not the case. However, how can you explain the problem with relative paths? Werner