bug-bash
[Top][All Lists]
Advanced

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

Re: Missing character when using ${VAR:1} and length(VAR)==1


From: Jan Schampera
Subject: Re: Missing character when using ${VAR:1} and length(VAR)==1
Date: Fri, 21 Sep 2007 05:16:03 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.13pre) Gecko/20070505 Iceape/1.0.9 (Debian-1.0.10~pre070720-0etch3)

Chet Ramey wrote:

Description:
        there is missing a charachter when using the following:
        # TT="oo"; echo "l${TT:1}l"
        lol
        # TT="o"; echo "l${TT:1}l"
        l

I can't reproduce this; I get `ll' from the second expansion.

I can't reproduce it on a 2.05b:
  $ TT="o"; echo "l${TT:1}l"
  ll

But I can reproduce it (or at least something weird) on a 3.1.17(1)-release:
  $ TT="o"; echo "l${TT:1}l"
  lXl
(where X is a non-printable character for my terminal here, maybe multibyte)

However, I can't reproduce it on the latest build, so I assume it's fixed.

J.





reply via email to

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