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