Add documentation about support for negative indices

darcs-hash:20060604094203-ac50b-6cf671235549eb79d3464a15398b6511057dedde.gz
This commit is contained in:
axel
2006-06-04 19:42:03 +10:00
parent e7e3e8ee74
commit cf35a8e3a5
2 changed files with 10 additions and 1 deletions

View File

@@ -747,6 +747,10 @@ set -e smurf[1]
echo $smurf
</pre>
If you specify a negative index when expanding or assigning to an
array variable, the index will be calculated from the end of the
array. For example, the index -1 means the last index of an array.
\subsection variables-special Special variables
The user can change the settings of \c fish by changing the values of