string split --fields: handle multi-line/arg input

This commit is contained in:
Jason Nader
2020-04-18 13:03:54 +09:00
committed by Johannes Altmanninger
parent 3f95440f26
commit 3bb86d3a61
2 changed files with 38 additions and 30 deletions

View File

@@ -107,6 +107,10 @@ string split --fields=1-3,5,9-7 "" 123456789
# CHECK: 8
# CHECK: 7
string split -f1 ' ' 'a b' 'c d'
# CHECK: a
# CHECK: c
seq 3 | string join ...
# CHECK: 1...2...3