]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
Bash-4.2 patch 17
authorChet Ramey <chet.ramey@case.edu>
Wed, 23 Nov 2011 01:03:09 +0000 (20:03 -0500)
committerChet Ramey <chet.ramey@case.edu>
Wed, 23 Nov 2011 01:03:09 +0000 (20:03 -0500)
builtins/read.def
patchlevel.h

index c4a668a661df9741c51d63c85ea910608c4f2f3d..1b87faaefb6f61ca6505f1ffc1aef232a957e059 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 dd41e764a73c36a6ba6e14b65533e9b123e8907c..5de379f286805147fb8d3297e2358870a7952222 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_ */