Logo
Explore Help
Sign In
h/fish-shell
1
Fork 0
You've already forked fish-shell
mirror of https://github.com/fish-shell/fish-shell.git synced 2026-05-05 13:31:15 -03:00
Code Issues Packages Projects Releases Wiki Activity
Files
afd20b8e1abf330c7d4ffbd7db2d7b23864e46b8
fish-shell/tests/zero_based_array.in

9 lines
121 B
Fish
Raw Normal View History

Emit an error message on literal zero indices 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.
2018-10-01 20:54:55 -05:00
echo $foo[0]
echo $foo[ 0 ]
echo $foo[ 00 ]
Correct misdetection of `[001]` as literal zero index The control flow in expand.cpp is a bit more complicated than it seemed at first blush. Ref #4862.
2018-10-15 14:11:37 -05:00
# and make sure these didn't break
set -l foo one two three
echo $foo[001]
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 53ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API