~doko/+junk/pkg-bash-debian

« back to all changes in this revision

Viewing changes to patches/bash42-041.diff

  • Committer: Matthias Klose
  • Date: 2015-01-29 23:36:31 UTC
  • Revision ID: doko@18xx.org-20150129233631-3k2rxji5gnrc47vh
4.3 updates up to 4.3-12

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
                             BASH PATCH REPORT
2
 
                             =================
3
 
 
4
 
Bash-Release:   4.2
5
 
Patch-ID:       bash42-041
6
 
 
7
 
Bug-Reported-by:        Andrey Borzenkov <arvidjaar@gmail.com>
8
 
Bug-Reference-ID:       <20121202205200.2134478e@opensuse.site>
9
 
Bug-Reference-URL:      http://lists.gnu.org/archive/html/bug-bash/2012-12/msg00008.html
10
 
 
11
 
Bug-Description:
12
 
 
13
 
Process substitution incorrectly inherited a flag that inhibited using the
14
 
(local) temporary environment for variable lookups if it was providing
15
 
the filename to a redirection.  The intent the flag is to enforce the
16
 
Posix command expansion ordering rules.
17
 
 
18
 
Patch (apply with `patch -p0'):
19
 
 
20
 
Index: b/bash/patchlevel.h
21
 
===================================================================
22
 
--- a/bash/patchlevel.h
23
 
+++ b/bash/patchlevel.h
24
 
@@ -25,6 +25,6 @@
25
 
    regexp `^#define[   ]*PATCHLEVEL', since that's what support/mkversion.sh
26
 
    looks for to find the patch level (for the sccs version string). */
27
 
 
28
 
-#define PATCHLEVEL 40
29
 
+#define PATCHLEVEL 41
30
 
 
31
 
 #endif /* _PATCHLEVEL_H_ */
32
 
Index: b/bash/subst.c
33
 
===================================================================
34
 
--- a/bash/subst.c
35
 
+++ b/bash/subst.c
36
 
@@ -5124,6 +5124,10 @@
37
 
   dev_fd_list[parent_pipe_fd] = 0;
38
 
 #endif /* HAVE_DEV_FD */
39
 
 
40
 
+  /* subshells shouldn't have this flag, which controls using the temporary
41
 
+     environment for variable lookups. */
42
 
+  expanding_redir = 0;
43
 
+
44
 
   result = parse_and_execute (string, "process substitution", (SEVAL_NONINT|SEVAL_NOHIST));
45
 
 
46
 
 #if !defined (HAVE_DEV_FD)