1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
#! /bin/sh -e
if [ $# -eq 3 -a "$2" = '-d' ]; then
pdir="-d $3"
elif [ $# -ne 1 ]; then
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
fi
case "$1" in
-patch) patch $pdir -f --no-backup-if-mismatch -p0 < $0;;
-unpatch) patch $pdir -f --no-backup-if-mismatch -R -p0 < $0;;
*)
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
esac
exit 0
# DP: bash-2.05b upstream patch 004
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 *
|