fixed kern ver for toolchain glibc build
[hdw-linux/hdw-linux.git] / packages / base / bash / variable_expansion.patch
1                              BASH PATCH REPORT
2                              =================
3
4 Bash-Release: 2.05b
5 Patch-ID: bash205b-004
6
7 Bug-Reported-by:   c.f.a.johnson@rogers.com
8 Bug-Reference-ID:  <aji8sb$1aa9bi$2@ID-136730.news.dfncis.de>
9 Bug-Reference-URL: http://mail.gnu.org/pipermail/bug-bash/2002-August/005074.html
10
11 Bug-Description:
12
13 A bug in the bash variable expansion code causes leading blanks in a
14 variable's value to be ignored when computing its length.
15
16 Patch:
17
18 *** ./subst.c   Mon Jun 24 07:59:45 2002
19 --- ./subst.c   Sat Aug 17 17:28:46 2002
20 ***************
21 *** 1639,1647 ****
22   /* This performs word splitting and quoted null character removal on
23      STRING. */
24 ! #if 0
25 ! #define issep(c)      ((separators)[1] ? (member ((c), separators)) : (c) == (separators)[0])
26 ! #else
27 ! #define issep(c)      ((separators)[1] ? isifs(c) : (c) == (separators)[0])
28 ! #endif
29   
30   WORD_LIST *
31 --- 1639,1646 ----
32   /* This performs word splitting and quoted null character removal on
33      STRING. */
34 ! #define issep(c) \
35 !       (((separators)[0]) ? ((separators)[1] ? isifs(c) \
36 !                                             : (c) == (separators)[0]) \
37 !                          : 0)
38   
39   WORD_LIST *
40
41