Imported from ../bash-3.0.16.tar.gz.
[platform/upstream/bash.git] / general.c
index df4b113..0b9c8fb 100644 (file)
--- a/general.c
+++ b/general.c
@@ -267,7 +267,7 @@ assignment (string, flags)
   c = string[indx = 0];
 
 #if defined (ARRAY_VARS)
-  if ((legal_variable_starter (c) == 0) && (flags && c != '[')) /* ] */
+  if ((legal_variable_starter (c) == 0) && (flags == 0 || c != '[')) /* ] */
 #else
   if (legal_variable_starter (c) == 0)
 #endif