The GNU bash manual tells me
An indexed array is created automatically if any variable is assigned to using the syntax name[subscript]=v
An indexed array is created automatically if any variable is assigned to using the syntax
name[subscript]=v
If you just want the last element
$ echo ${muh[*]: -1} 2
If you want next to last element
$ echo ${muh[*]: -2:1} bleh