mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 11:21:15 -03:00
string split: add --allow-empty flag to be used with --fields
This commit is contained in:
committed by
Johannes Altmanninger
parent
f66285d7a1
commit
6a839519b9
@@ -111,6 +111,9 @@ string split -f1 ' ' 'a b' 'c d'
|
||||
# CHECK: a
|
||||
# CHECK: c
|
||||
|
||||
string split --allow-empty --fields=2,9 "" abc
|
||||
# CHECK: b
|
||||
|
||||
seq 3 | string join ...
|
||||
# CHECK: 1...2...3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user