BASH PATCH REPORT ================= Bash-Release: 2.05b Patch-ID: bash205b-004 Bug-Reported-by: c.f.a.johnson@rogers.com Bug-Reference-ID: 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 *