title: Bash arrays and negative subscripts, yes or no?
body: <p>The <a href="http://www.gnu.org/software/bash/manual/html_node/Arrays.html" rel="noreferrer">GNU bash manual</a> tells me</p>
  
  <blockquote>
    <p>An indexed array is created automatically if any variable is assigned
    to using the syntax</p>
  
  <pre><code>name[subscript]=value
  </code></pre>
    
    <p>The subscript is treated as an arithmetic expression that must
    evaluate to a number. If subscript evaluates to a number less than
    zero, it is used as an offset from one greater than the array’s
    maximum index (so a subcript of -1 refers to the last element of the
    array).</p>
  </blockquote>
  
  <p>So I figure I will give it a try and get the following result:</p>
  
  <pre><code>$ muh=(1 4 'a' 'bleh' 2)
  $ echo $muh
  1
  $ echo ${muh[*]}
  1 4 a bleh 2    # so far so good so now I'll try a negative ...
  $ echo ${muh[-1]}
  -bash: muh: bad array subscript  # didn't go as planned!
  </code></pre>
  
  <p>Did I do something wrong, or is the website wrong, or is gnu bash that different from the bash I am running under CentOS?  Thanks!</p>