7 Bug-Reported-by: Dan Douglas <ormaaj@gmail.com>
8 Bug-Reference-ID: <4585554.nZWb4q7YoZ@smorgbox>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2011-12/msg00084.html
13 Using `read -N' to assign values to an array can result in NUL values being
14 assigned to some array elements. These values cause seg faults when referenced
17 Index: b/bash/builtins/read.def
18 ===================================================================
19 --- a/bash/builtins/read.def
20 +++ b/bash/builtins/read.def
25 - var = bind_read_variable (varname, t);
26 + var = bind_read_variable (varname, t ? t : "");
34 - var = bind_read_variable (list->word->word, input_string);
35 + var = bind_read_variable (list->word->word, input_string ? input_string : "");
39 Index: b/bash/patchlevel.h
40 ===================================================================
41 --- a/bash/patchlevel.h
42 +++ b/bash/patchlevel.h
44 regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
45 looks for to find the patch level (for the sccs version string). */
47 -#define PATCHLEVEL 20
48 +#define PATCHLEVEL 21
50 #endif /* _PATCHLEVEL_H_ */