mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-27 23:53:18 +02:00
commit bash-20190405 snapshot
This commit is contained in:
@@ -397,6 +397,16 @@ search_for_command (pathname, flags)
|
||||
if (st & FS_EXECABLE)
|
||||
phash_insert ((char *)pathname, command, dot_found_in_search, 1);
|
||||
}
|
||||
#if 0 /* TAG:bash-5.1 */
|
||||
/* If we're in posix mode, don't add files without the execute bit
|
||||
to the hash table. */
|
||||
else if (posixly_correct)
|
||||
{
|
||||
st = file_status (command);
|
||||
if (st & FS_EXECABLE)
|
||||
phash_insert ((char *)pathname, command, dot_found_in_search, 1);
|
||||
}
|
||||
#endif
|
||||
else
|
||||
phash_insert ((char *)pathname, command, dot_found_in_search, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user