]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - findcmd.c
commit bash-20141017 snapshot
[thirdparty/bash.git] / findcmd.c
index 61909050aadf41b0b48bad4d3f483c547011f375..e66769199c0bccb2e810c7775db23013e424cfd0 100644 (file)
--- a/findcmd.c
+++ b/findcmd.c
@@ -478,7 +478,7 @@ find_in_path_element (name, path, flags, name_len, dotinfop)
   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. `./.') */