[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bash-2.05b Patch 4
From: |
Chet Ramey |
Subject: |
Bash-2.05b Patch 4 |
Date: |
Thu, 5 Sep 2002 11:19:14 -0400 |
BASH PATCH REPORT
=================
Bash-Release: 2.05b
Patch-ID: bash205b-004
Bug-Reported-by: c.f.a.johnson@rogers.com
Bug-Reference-ID: <aji8sb$1aa9bi$2@ID-136730.news.dfncis.de>
Bug-Reference-URL:
http://mail.gnu.org/pipermail/bug-bash/2002-August/005074.html
Bug-Description:
A bug in the bash variable expansion code causes leading blanks in a
variable's value to be ignored when computing its length.
Patch:
*** ../bash-2.05b/subst.c Mon Jun 24 07:59:45 2002
--- subst.c Sat Aug 17 17:28:46 2002
***************
*** 1639,1647 ****
/* This performs word splitting and quoted null character removal on
STRING. */
! #if 0
! #define issep(c) ((separators)[1] ? (member ((c), separators)) : (c) ==
(separators)[0])
! #else
! #define issep(c) ((separators)[1] ? isifs(c) : (c) == (separators)[0])
! #endif
WORD_LIST *
--- 1639,1646 ----
/* This performs word splitting and quoted null character removal on
STRING. */
! #define issep(c) \
! (((separators)[0]) ? ((separators)[1] ? isifs(c) \
! : (c) == (separators)[0]) \
! : 0)
WORD_LIST *
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Chet Ramey, ITS, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bash-2.05b Patch 4,
Chet Ramey <=