applying bash42-017
authorAnas Nashif <anas.nashif@intel.com>
Sat, 8 Dec 2012 08:34:11 +0000 (00:34 -0800)
committerAnas Nashif <anas.nashif@intel.com>
Sat, 8 Dec 2012 08:34:11 +0000 (00:34 -0800)
builtins/read.def
patchlevel.h

index c4a668a..1b87faa 100644 (file)
@@ -642,6 +642,12 @@ assign_vars:
          xfree (input_string);
          return EXECUTION_FAILURE;     /* readonly or noassign */
        }
+      if (assoc_p (var))
+       {
+          builtin_error (_("%s: cannot convert associative to indexed array"), arrayname);
+         xfree (input_string);
+         return EXECUTION_FAILURE;     /* existing associative array */
+       }
       array_flush (array_cell (var));
 
       alist = list_string (input_string, ifs_chars, 0);
index dd41e76..5de379f 100644 (file)
@@ -25,6 +25,6 @@
    regexp `^#define[   ]*PATCHLEVEL', since that's what support/mkversion.sh
    looks for to find the patch level (for the sccs version string). */
 
-#define PATCHLEVEL 16
+#define PATCHLEVEL 17
 
 #endif /* _PATCHLEVEL_H_ */