mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 18:51:15 -03:00
Add string split --fields
This commit is contained in:
committed by
Fabian Homborg
parent
a29bc127ce
commit
7cb1d3a646
@@ -88,6 +88,16 @@ string split "" abc
|
||||
# CHECK: b
|
||||
# CHECK: c
|
||||
|
||||
string split --fields=2 "" abc
|
||||
# CHECK: b
|
||||
|
||||
string split --fields=2,3 "" abc
|
||||
# CHECK: b
|
||||
# CHECK: c
|
||||
|
||||
string split --fields=2,9 "" abc
|
||||
# CHECK: b
|
||||
|
||||
seq 3 | string join ...
|
||||
# CHECK: 1...2...3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user