Support NUL-containing lines in sort(1)

For sort(1) we need memmem(), which I imported from OpenBSD.
Inside sort(1), the changes involved working with the explicit lengths
given by getlines() earlier and rewriting some of the functions.

Now we can handle NUL-characters in the input just fine.
This commit is contained in:
FRIGN
2016-02-29 00:47:10 +01:00
committed by sin
parent e4810f1cdb
commit eb9bda8787
5 changed files with 176 additions and 84 deletions

2
README
View File

@@ -79,7 +79,7 @@ The following tools are implemented:
0=* x sha512-224sum .
0=* x sha512-256sum .
0=*|o sleep .
#*|o sort .
0#*|o sort .
0=*|o split .
0=*|x sponge .
0#*|o strings .