Is there a reason behind requiring a space?
Or at lease a logic behind why was it done like that?
Code:
shadyabhi@MBP-archlinux ~ $ array=( zero one two three four five )
shadyabhi@MBP-archlinux ~ $ echo ${array[@]:-1:1}
zero one two three four five
shadyabhi@MBP-archlinux ~ $ echo ${array[@]: -1:1}
five
shadyabhi@MBP-archlinux ~ $
I observed above that if I don't give a space between "]:" and "-1", something troublesome happens.