Date: Fri, 29 Oct 2010 19:34:57 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/bin/sh expand.c src/tools/regression/bin/sh/expansion trim6.0 Message-ID: <201010291935.o9TJZsEm001951@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jilles 2010-10-29 19:34:57 UTC
FreeBSD src repository
Modified files:
bin/sh expand.c
Added files:
tools/regression/bin/sh/expansion trim6.0
Log:
SVN rev 214524 on 2010-10-29 19:34:57Z by jilles
sh: Fix some issues with CTL* bytes and ${var#pat}.
subevalvar() incorrectly assumed that CTLESC bytes were present iff the
expansion was quoted. However, they are present iff various processing such
as word splitting is to be done later on.
Example:
v=@$e@$e@$e@
y="${v##*"$e"}"
echo "$y"
failed if $e contained the magic CTLESC byte.
Exp-run done by: pav (with some other sh(1) changes)
Revision Changes Path
1.73 +13 -14 src/bin/sh/expand.c
1.1 +22 -0 src/tools/regression/bin/sh/expansion/trim6.0 (new)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010291935.o9TJZsEm001951>
