Date: Fri, 6 May 2011 12:49:32 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/bin/sh parser.c src/tools/regression/bin/sh/expansion length6.0 Message-ID: <201105061251.p46CpRm5088530@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jilles 2011-05-06 12:49:32 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_8)
bin/sh parser.c
Added files: (Branch: RELENG_8)
tools/regression/bin/sh/expansion length6.0
Log:
SVN rev 221522 on 2011-05-06 12:49:32Z by jilles
MFC r220903: sh: Do not word split "${#parameter}".
This is only a problem if IFS contains digits, which is unusual but valid.
Because of an incorrect fix for PR bin/12137, "${#parameter}" was treated
as ${#parameter}. The underlying problem was that "${#parameter}"
erroneously added CTLESC bytes before determining the length. This
was properly fixed for PR bin/56147 but the incorrect fix was not backed
out.
Reported by: Seeker on forums.freebsd.org
Revision Changes Path
1.63.2.11 +1 -1 src/bin/sh/parser.c
1.1.2.2 +8 -0 src/tools/regression/bin/sh/expansion/length6.0 (new)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105061251.p46CpRm5088530>
