bug-bash
[Top][All Lists]
Advanced

[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' 
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H  -D_FILE_OFFSET_BITS=64  -I.  
-I/home/swt/doko/export/packages/bash/bash-2.03 
-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

Description:

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.

Repeat-By:

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

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


-- 
Leonard Stiles <ljs@uk2.net>




reply via email to

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