mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 08:51:14 -03:00
Add string split0
This adds a new string command split0, which splits on zero bytes. split0 has superpowers because its output is not further split on newlines when used in command substitutions.
This commit is contained in:
@@ -433,3 +433,16 @@ d
|
||||
a\x00b
|
||||
a\x00g
|
||||
a\x00g
|
||||
|
||||
####################
|
||||
# string split0
|
||||
1
|
||||
3
|
||||
4
|
||||
3
|
||||
2
|
||||
1
|
||||
|
||||
####################
|
||||
# string split0 in functions
|
||||
4
|
||||
|
||||
Reference in New Issue
Block a user