int status;
char *full_path, *xpath;
- xpath = (*path == '~') ? bash_tilde_expand (path, 0) : path;
+ xpath = (posixly_correct == 0 && *path == '~') ? bash_tilde_expand (path, 0) : path;
/* Remember the location of "." in the path, in all its forms
(as long as they begin with a `.', e.g. `./.') */