3
if [ $# -eq 3 -a "$2" = '-d' ]; then
5
elif [ $# -ne 1 ]; then
6
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
10
-patch) patch $pdir -f --no-backup-if-mismatch -p0 < $0;;
11
-unpatch) patch $pdir -f --no-backup-if-mismatch -R -p0 < $0;;
13
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
18
# DP: bash-4.0 upstream fix 010
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
32
Bash has problems parsing comments in case statements when they appear in
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
41
tflags &= ~LEX_RESWDOK;
43
! else if (shellbreak (ch) == 0)
45
! tflags &= ~LEX_RESWDOK;
46
/*itrace("parse_comsub:%d: found `%c', lex_reswordok -> 0", line_number, ch);*/
49
tflags &= ~LEX_RESWDOK;
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. */
60
! tflags &= ~LEX_RESWDOK;
61
! /*itrace("parse_comsub:%d: lex_incase == 1 found `%c', lex_reswordok -> 0", line_number, ch);*/
63
! else if MBTEST(shellbreak (ch) == 0)
65
! tflags &= ~LEX_RESWDOK;
66
/*itrace("parse_comsub:%d: found `%c', lex_reswordok -> 0", line_number, ch);*/
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
72
looks for to find the patch level (for the sccs version string). */
74
! #define PATCHLEVEL 9
76
#endif /* _PATCHLEVEL_H_ */
78
looks for to find the patch level (for the sccs version string). */
80
! #define PATCHLEVEL 10
82
#endif /* _PATCHLEVEL_H_ */