~ubuntu-branches/ubuntu/lucid/bash/lucid

« back to all changes in this revision

Viewing changes to debian/patches/bash40-010.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-08-24 12:06:59 UTC
  • mfrom: (1.3.2 upstream) (2.1.5 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090824120659-gmp1uuy2w9k2st53
Tags: 4.0-4ubuntu1
* Merge with Debian; remaining changes:
  - Build from the upstream sources, build the documentation in info format.
  - /etc/skel/.bashrc: eval lesspipe.
* Changes to the skeleton .bashrc:
  - Source .bash_aliases after defining aliases. LP: #400686.
  - Enable color support for grep. LP: #386502.
* The bash docs now  describe uname -s not having any effect on many
  systems. LP: #378595.
* Don't ship an info dir file. LP: #358932.
* Fix some lintian warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh -e
 
2
 
 
3
if [ $# -eq 3 -a "$2" = '-d' ]; then
 
4
    pdir="-d $3"
 
5
elif [ $# -ne 1 ]; then
 
6
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
 
7
    exit 1
 
8
fi
 
9
case "$1" in
 
10
    -patch) patch $pdir -f --no-backup-if-mismatch -p0 < $0;;
 
11
    -unpatch) patch $pdir -f --no-backup-if-mismatch -R -p0 < $0;;
 
12
    *)
 
13
        echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
 
14
        exit 1
 
15
esac
 
16
exit 0
 
17
 
 
18
# DP: bash-4.0 upstream fix 010
 
19
 
 
20
                             BASH PATCH REPORT
 
21
                             =================
 
22
 
 
23
Bash-Release: 4.0
 
24
Patch-ID: bash40-010
 
25
 
 
26
Bug-Reported-by:        Mike Frysinger <vapier@gentoo.org>
 
27
Bug-Reference-ID:       <200903030122.56206.vapier@gentoo.org>
 
28
Bug-Reference-URL:      http://lists.gnu.org/archive/html/bug-bash/2009-03/msg00023.html
 
29
 
 
30
Bug-Description:
 
31
 
 
32
Bash has problems parsing comments in case statements when they appear in
 
33
$(...) subshells.
 
34
 
 
35
Patch:
 
36
 
 
37
*** ../bash-4.0/parse.y 2009-03-07 15:18:35.000000000 -0500
 
38
--- parse.y     2009-03-07 14:16:32.000000000 -0500
 
39
***************
 
40
*** 3413,3419 ****
 
41
              tflags &= ~LEX_RESWDOK;
 
42
            }
 
43
!         else if (shellbreak (ch) == 0)
 
44
  {
 
45
!             tflags &= ~LEX_RESWDOK;
 
46
  /*itrace("parse_comsub:%d: found `%c', lex_reswordok -> 0", line_number, ch);*/
 
47
  }
 
48
--- 3415,3433 ----
 
49
              tflags &= ~LEX_RESWDOK;
 
50
            }
 
51
!         else if MBTEST((tflags & LEX_CKCOMMENT) && ch == '#' && (lex_rwlen == 0 || ((tflags & LEX_INWORD) && lex_wlen == 0)))
 
52
!           ;   /* don't modify LEX_RESWDOK if we're starting a comment */
 
53
!         else if MBTEST((tflags & LEX_INCASE) && ch != '\n')
 
54
!           /* If we can read a reserved word and we're in case, we're at the
 
55
!              point where we can read a new pattern list or an esac.  We
 
56
!              handle the esac case above.  If we read a newline, we want to
 
57
!              leave LEX_RESWDOK alone.  If we read anything else, we want to
 
58
!              turn off LEX_RESWDOK, since we're going to read a pattern list. */
 
59
  {
 
60
!           tflags &= ~LEX_RESWDOK;
 
61
! /*itrace("parse_comsub:%d: lex_incase == 1 found `%c', lex_reswordok -> 0", line_number, ch);*/
 
62
! }
 
63
!         else if MBTEST(shellbreak (ch) == 0)
 
64
! {
 
65
!           tflags &= ~LEX_RESWDOK;
 
66
  /*itrace("parse_comsub:%d: found `%c', lex_reswordok -> 0", line_number, ch);*/
 
67
  }
 
68
*** ../bash-4.0/patchlevel.h    2009-01-04 14:32:40.000000000 -0500
 
69
--- patchlevel.h        2009-02-22 16:11:31.000000000 -0500
 
70
***************
 
71
*** 26,30 ****
 
72
     looks for to find the patch level (for the sccs version string). */
 
73
  
 
74
! #define PATCHLEVEL 9
 
75
  
 
76
  #endif /* _PATCHLEVEL_H_ */
 
77
--- 26,30 ----
 
78
     looks for to find the patch level (for the sccs version string). */
 
79
  
 
80
! #define PATCHLEVEL 10
 
81
  
 
82
  #endif /* _PATCHLEVEL_H_ */