Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2
On 3/19/12 9:27 AM, Mark Edgar wrote:
> I've boiled the problem down to this:
>
> A=
> B=q
> echo "x${A+${B#q*}}x" | sed -nel
>
> Excluding the newline, the output I expect is "xx", but instead there
> is a delete character \177 between the two "x" characters.
Thanks for the wonderfully detailed bug report; that made the problem
easy to find and test. I've attached a patch which fixes the issue.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/