Audit tr(1)

A tool of my own devising, except from a small style-fix this code
has already been triple-checked.
This commit is contained in:
FRIGN 2015-03-17 23:41:22 +01:00
parent 95fb7364a8
commit f6dc69eca3
2 changed files with 2 additions and 2 deletions

2
README
View File

@ -77,7 +77,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support,
=*| test yes none =*| test yes none
=*| time yes none =*| time yes none
=*| touch yes none =*| touch yes none
#* tr yes none #*| tr yes none
=*| true yes none =*| true yes none
=*| tty yes none =*| tty yes none
=*| uname yes none =*| uname yes none

2
tr.c
View File

@ -192,7 +192,7 @@ main(int argc, char *argv[])
usage(); usage();
} ARGEND; } ARGEND;
if (argc < 1 || argc > 2 || (argc == 1 && dflag == sflag)) if (!argc || argc > 2 || (argc == 1 && dflag == sflag))
usage(); usage();
set1ranges = makeset(argv[0], &set1, &set1check); set1ranges = makeset(argv[0], &set1, &set1check);
if (argc == 2) if (argc == 2)