mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-03 00:16:20 +08:00
264d8270a7
Mostly resolves #4862, 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.
10 lines
199 B
Plaintext
10 lines
199 B
Plaintext
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 ]
|
|
^
|