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-07-01 08:11:14 -03:00
Code Issues Packages Projects Releases Wiki Activity
Files
65397d4f5efd74e09dd59f574ac3acb87f1fc755
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: 144ms Template: 3ms
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