mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-07 18:52:35 +02:00
more error checking for hash builtin; fix for [[ builtin and some test syntax errors
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user