mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 03:21:16 -03:00
Return 1 if non-existent field is given
This commit is contained in:
committed by
Fabian Homborg
parent
1329a40e87
commit
21bbd2ecb4
@@ -95,8 +95,8 @@ string split --fields=3,2 "" abc
|
||||
# CHECK: c
|
||||
# CHECK: b
|
||||
|
||||
string split --fields=2,9 "" abc
|
||||
# CHECK: b
|
||||
string split --fields=2,9 "" abc; or echo "exit 1"
|
||||
# CHECK: exit 1
|
||||
|
||||
string split --fields=1-3,5,9-7 "" 123456789
|
||||
# CHECK: 1
|
||||
|
||||
Reference in New Issue
Block a user