2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-01-20 08:54:00 +00:00
fish-shell/tests/zero_based_array.err
Mahmoud Al-Qudsi 264d8270a7 Emit an error message on literal zero indices
Mostly resolves , though there remains the lingering question of
whether or not to emit a warning to /dev/tty or stderr when a
non-literal-zero index evaluates to zero.
2018-10-01 20:58:26 -05:00

9 lines
199 B
Text

fish: array indices start at 1, not 0.
echo $foo[0]
^
fish: array indices start at 1, not 0.
echo $foo[ 0 ]
^
fish: array indices start at 1, not 0.
echo $foo[ 00 ]
^