sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit f6dc69eca3d75b9c37291e2e7201c2ab09e29be6
parent 95fb7364a8f86492c9dc9c602b4101494bf75de1
Author: FRIGN <dev@frign.de>
Date:   Tue Mar 17 23:41:22 +0100

Audit tr(1)

A tool of my own devising, except from a small style-fix this code
has already been triple-checked.

Diffstat:
README | 2+-
tr.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README b/README @@ -77,7 +77,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support, =*| test yes none =*| time yes none =*| touch yes none -#* tr yes none +#*| tr yes none =*| true yes none =*| tty yes none =*| uname yes none diff --git a/tr.c b/tr.c @@ -192,7 +192,7 @@ main(int argc, char *argv[]) usage(); } ARGEND; - if (argc < 1 || argc > 2 || (argc == 1 && dflag == sflag)) + if (!argc || argc > 2 || (argc == 1 && dflag == sflag)) usage(); set1ranges = makeset(argv[0], &set1, &set1check); if (argc == 2)