fish-shell/tests/zero_based_array.in
Mahmoud Al-Qudsi 0e62dedb26 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

8 lines
121 B
Fish

echo $foo[0]
echo $foo[ 0 ]
echo $foo[ 00 ]
# and make sure these didn't break
set -l foo one two three
echo $foo[001]