bug-bash
[Top][All Lists]
Advanced

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

add support for ${array[#]} syntax ?


From: Mike Frysinger
Subject: add support for ${array[#]} syntax ?
Date: Thu, 2 Feb 2006 23:08:13 -0500
User-agent: KMail/1.9.1

every once in a while i want to get the # of elements in an array and i always 
type ${array[#]} to get at it (following the behavior of ${array[@]} and 
${array[*]}) ... then i remember that the proper syntax is ${#array[@]} (or 
someone else reminds me)

is there a reason that ${array[#]} isnt supported as well as ${#array[@]} ?
-mike




reply via email to

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