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
[Prev in Thread]
Current Thread
[Next in Thread]
add support for ${array[#]} syntax ?,
Mike Frysinger<=