[Top][All Lists]

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

Re: Unintended(?) change in behavior of ${#a}.

From: Chet Ramey
Subject: Re: Unintended(?) change in behavior of ${#a}.
Date: Thu, 2 Jan 2003 10:06:11 -0500

> Machine Type: i386-redhat-linux-gnu
> Bash Version: 2.05
> Patch Level: 8
> Release Status: release
> Description:
>       [Detailed description of the problem, suggestion, or complaint.]
> The behavior of ${#a} has changed between 2.05.8 and 2.05b.0, as the
> included bash sessions show.  In 2.05.8 ${#a} expanded to the full
> length of `a', including all whitespace, as suggested by the
> documentation.  In 2.05b.0, leading whitespace is not counted, although
> trailing whitespace is.  I believe that this is an unintentional bug.
> If it is intentional, the documentation should be adapted to reflect
> the new behavior.

This is fixed by patch 4 to bash-2.05b.



``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )

Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

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