more error checking for hash builtin; fix for [[ builtin and some test syntax errors

This commit is contained in:
Chet Ramey
2023-09-13 16:25:28 -04:00
parent 32826f717d
commit 94bce520e8
25 changed files with 1898 additions and 1707 deletions
+4 -1
View File
@@ -66,9 +66,12 @@ phash_remove (const char *filename)
{
register BUCKET_CONTENTS *item;
if (hashing_enabled == 0 || hashed_filenames == 0)
if (hashing_enabled == 0)
return 0;
if (hashed_filenames == 0)
return 1;
item = hash_remove (filename, hashed_filenames, 0);
if (item)
{