chiark / gitweb /
Disable all exported shell functions
[bash.git] / debian / patches / bash42-016.diff
1                              BASH PATCH REPORT
2                              =================
3
4 Bash-Release:   4.2
5 Patch-ID:       bash42-016
6
7 Bug-Reported-by:        Martin von Gagern <Martin.vGagern@gmx.net>
8 Bug-Reference-ID:       <4E43AD9E.8060501@gmx.net>
9 Bug-Reference-URL:      http://lists.gnu.org/archive/html/bug-bash/2011-08/msg00141.html
10
11 Bug-Description:
12
13 Bash should not check for mail while executing the `eval' builtin.
14
15 Patch (apply with `patch -p0'):
16
17 --- a/bash/parse.y
18 +++ b/bash/parse.y
19 @@ -2499,7 +2499,7 @@
20          We do this only if it is time to do so. Notice that only here
21          is the mail alarm reset; nothing takes place in check_mail ()
22          except the checking of mail.  Please don't change this. */
23 -      if (prompt_is_ps1 && time_to_check_mail ())
24 +      if (prompt_is_ps1 && parse_and_execute_level == 0 && time_to_check_mail ())
25         {
26           check_mail ();
27           reset_mail_timer ();
28 --- a/bash/patchlevel.h
29 +++ b/bash/patchlevel.h
30 @@ -25,6 +25,6 @@
31     regexp `^#define[   ]*PATCHLEVEL', since that's what support/mkversion.sh
32     looks for to find the patch level (for the sccs version string). */
33  
34 -#define PATCHLEVEL 15
35 +#define PATCHLEVEL 16
36  
37  #endif /* _PATCHLEVEL_H_ */