Refactor sponge(1) code and manpage

and mark it as finished in README.
This commit is contained in:
FRIGN 2015-02-08 22:17:21 +01:00
parent 8798b8a867
commit 1df65f4af4
3 changed files with 4 additions and 6 deletions

2
README
View File

@ -61,7 +61,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support,
=* sleep yes none =* sleep yes none
sort no -m, -o, -d, -f, -i sort no -m, -o, -d, -f, -i
=* split yes none =* split yes none
= sponge non-posix none =* sponge non-posix none
strings no -a, -n, -t strings no -a, -n, -t
=* sync non-posix none =* sync non-posix none
= tail no -c, -f = tail no -c, -f

View File

@ -1,4 +1,4 @@
.Dd January 30, 2015 .Dd February 8, 2015
.Dt SPONGE 1 .Dt SPONGE 1
.Os sbase .Os sbase
.Sh NAME .Sh NAME
@ -14,7 +14,6 @@ reads stdin completely, then writes the saved contents to
This makes it possible to easily create pipes which read from and write to This makes it possible to easily create pipes which read from and write to
the same file. the same file.
.Pp .Pp
If the given If
.Ar file .Ar file
is a symbolic link, it writes to the links destination is a symbolic link, it writes to its destination instead.
instead.

View File

@ -1,6 +1,5 @@
/* See LICENSE file for copyright and license details. */ /* See LICENSE file for copyright and license details. */
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include "text.h" #include "text.h"
#include "util.h" #include "util.h"