Re: Bug in nested parameter expansion.

2012-03-20 Thread Chet Ramey
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 detai

Bug in nested parameter expansion.

2012-03-19 Thread Mark Edgar
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. After much experimenting, the important triggers are: * The entire ${A...} substituti