[Top][All Lists]

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

indirect parameter expansion broken for ${#PARAM}

From: Leonard Stiles
Subject: indirect parameter expansion broken for ${#PARAM}
Date: Thu, 12 Jul 2001 14:01:13 +0200

Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-pc-linux-gnu' 
-I/home/swt/doko/export/packages/bash/bash-2.03/lib -I/usr/include -g -O2
uname output: Linux TK212017118241.teleweb.at 2.2.19 #1 Tue Jun 19 07:46:20 
CEST 2001 i686 unknown
Machine Type: i386-pc-linux-gnu

Bash Version: 2.03
Patch Level: 0
Release Status: release


Indirect parameter expansion (i.e. of the form ${!var}) seems to be
broken in bash 2.03 when used in the ${#var} form to obtain the length
of a variable's value.


# the following should print "3", instead it causes an error:

echo ${#!myvarname}
bash: !myvarname}: event not found

Leonard Stiles <address@hidden>

reply via email to

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