7 Bug-Reported-by: Eric Pruitt <eric.pruitt@gmail.com>
8 Bug-Reference-ID: <20160916055120.GA28272@sinister.codevat.com>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2016-09/msg00015.html
13 Bash-4.4 warns when discarding NUL bytes in command substitution output
14 instead of silently dropping them. This patch changes the warnings from
15 one per NUL byte encountered to one warning per command substitution.
17 Patch (apply with `patch -p0'):
19 *** ../bash-4.4/subst.c 2016-08-30 16:46:38.000000000 -0400
20 --- subst.c 2016-09-26 10:20:19.000000000 -0400
24 int istring_index, istring_size, c, tflag, skip_ctlesc, skip_ctlnul;
28 istring = (char *)NULL;
32 skip_ctlesc |= *s == CTLESC, skip_ctlnul |= *s == CTLNUL;
36 /* Read the output of the command through the pipe. This may need to be
37 changed to understand multibyte characters in the future. */
42 ! internal_warning ("%s", _("command substitution: ignored null byte in input"));
50 ! internal_warning ("%s", _("command substitution: ignored null byte in input"));
55 *** ../bash-4.4/patchlevel.h 2016-06-22 14:51:03.000000000 -0400
56 --- patchlevel.h 2016-10-01 11:01:28.000000000 -0400
59 looks for to find the patch level (for the sccs version string). */
61 ! #define PATCHLEVEL 1
63 #endif /* _PATCHLEVEL_H_ */
65 looks for to find the patch level (for the sccs version string). */
67 ! #define PATCHLEVEL 2
69 #endif /* _PATCHLEVEL_H_ */