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:
ridiculousfish
2018-05-29 21:11:50 -07:00
parent f998afaa23
commit d34a300818
6 changed files with 115 additions and 61 deletions

View File

@@ -433,3 +433,16 @@ d
a\x00b
a\x00g
a\x00g
####################
# string split0
1
3
4
3
2
1
####################
# string split0 in functions
4