Bash-4.2 patch 17

This commit is contained in:
Chet Ramey 2011-11-22 20:03:09 -05:00
commit b4d4016469
2 changed files with 7 additions and 1 deletions

View 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);

View 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_ */