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 Patch (apply with `patch -p0'):
19 --- a/builtins/read.def
20 +++ b/builtins/read.def
21 @@ -737,7 +737,7 @@ assign_vars:
25 - var = bind_read_variable (varname, t);
26 + var = bind_read_variable (varname, t ? t : "");
30 @@ -798,7 +798,7 @@ assign_vars:
34 - var = bind_read_variable (list->word->word, input_string);
35 + var = bind_read_variable (list->word->word, input_string ? input_string : "");
42 regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
43 looks for to find the patch level (for the sccs version string). */
45 -#define PATCHLEVEL 20
46 +#define PATCHLEVEL 21
48 #endif /* _PATCHLEVEL_H_ */