Re: Fwd: Bash bug interpolating delete characters

2012-05-03 Thread John Kearney
Am 03.05.2012 19:41, schrieb John Kearney: > Am 03.05.2012 15:01, schrieb Greg Wooledge: >>> Yours, Rüdiger. >>> a=x >>> del="$(echo -e "\\x7f")" >>> >>> echo "$del${a#x}" | od -ta >>> echo "$del ${a#x}" | od -ta >>> echo " $del${a#x}" | od -ta >> Yup, confirmed that it breaks here, and only when t

Re: Fwd: Bash bug interpolating delete characters

2012-05-03 Thread John Kearney
Am 03.05.2012 15:01, schrieb Greg Wooledge: >> Yours, Rüdiger. >> a=x >> del="$(echo -e "\\x7f")" >> >> echo "$del${a#x}" | od -ta >> echo "$del ${a#x}" | od -ta >> echo " $del${a#x}" | od -ta > Yup, confirmed that it breaks here, and only when the # parameter expansion > is included. > > imadev:~$

Re: Fwd: Bash bug interpolating delete characters

2012-05-03 Thread Greg Wooledge
> Yours, Rüdiger. > a=x > del="$(echo -e "\\x7f")" > > echo "$del${a#x}" | od -ta > echo "$del ${a#x}" | od -ta > echo " $del${a#x}" | od -ta Yup, confirmed that it breaks here, and only when the # parameter expansion is included. imadev:~$ del=$'\x7f' a=x b= imadev:~$ echo " $del$b" | od -ta 0