[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in nested parameter expansion.

From: Chet Ramey
Subject: Re: Bug in nested parameter expansion.
Date: Tue, 20 Mar 2012 19:48:29 -0400
User-agent: 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.


``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

Attachment: quoted-null-rhs.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]