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: Chet Ramey
Subject: Re: Missing character when using ${VAR:1} and length(VAR)==1
Date: Fri, 21 Sep 2007 12:50:55 -0400
User-agent: Thunderbird 2.0.0.6 (Macintosh/20070728)

Stephane Chazelas wrote:

> Same here. The character is DEL:
> 
> ~$ bash -c 'TT="o"; echo "l${TT:1}l"' | od -c
> 0000000   l 177   l  \n
> 0000004
> ~$ locale charmap
> ISO-8859-15
> ~$ bash --version
> GNU bash, version 3.1.17(1)-release (i486-pc-linux-gnu)
> Copyright (C) 2005 Free Software Foundation, Inc.
> 
> ~/install/bash-3.2$ ./bash -c 'TT="o"; echo "l${TT:1}l"' | od -c
> 0000000   l   l  \n
> 0000003
> ~/install/bash-3.2$ ./bash --version
> GNU bash, version 3.2.25(2)-release (i686-pc-linux-gnu)
> Copyright (C) 2005 Free Software Foundation, Inc.

OK.  But it doesn't really matter, since 3.2 appears to fix
whatever problem existed.

> (why doesn't the Copyright extend to 2007, BTW?)

An oversight.  It should really have been 2006, since bash-3.2 was
released in 2006.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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