mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-24 11:37:10 +08:00
9be7288fab
This caused `$var[2..-1]` to still expand to $var[1] if only one element was given. Fixup for #4965. Fixes #5187.
71 lines
580 B
Plaintext
71 lines
580 B
Plaintext
1
|
|
0
|
|
1 prefix
|
|
0
|
|
1
|
|
0
|
|
1 prefix
|
|
0
|
|
1
|
|
1
|
|
1 prefix
|
|
1 prefix
|
|
1
|
|
0
|
|
1 prefix
|
|
0
|
|
1
|
|
0
|
|
1 prefix
|
|
0
|
|
1 baz
|
|
1 baz
|
|
1 prefixbaz
|
|
1 prefixbaz
|
|
1 baz quux
|
|
2 baz quux
|
|
1 prefixbaz quux
|
|
2 prefixbaz prefixquux
|
|
1 baz quux fooer fooest
|
|
2 baz quux
|
|
1 prefixbaz quux fooer fooest
|
|
2 prefixbaz prefixquux
|
|
3 baz quux
|
|
3 prefixbaz prefixquux prefix
|
|
1 baz quux fooest
|
|
2 baz quux
|
|
1 prefixbaz quux fooest
|
|
2 prefixbaz prefixquux
|
|
0
|
|
2 fooest
|
|
0
|
|
0
|
|
2 fooest
|
|
0
|
|
0
|
|
# foo =
|
|
1
|
|
0
|
|
1
|
|
0
|
|
1
|
|
0
|
|
1
|
|
0
|
|
1
|
|
0
|
|
# foo = a b c
|
|
0
|
|
0
|
|
0
|
|
0
|
|
# foo = a
|
|
0
|
|
|
|
|
|
####################
|
|
# Catch your breath
|
|
|
|
####################
|
|
# Test tilde expansion
|