mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-27 16:51:15 -03:00
Add documentation about support for negative indices
darcs-hash:20060604094203-ac50b-6cf671235549eb79d3464a15398b6511057dedde.gz
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user