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:
parent
95fb7364a8
commit
f6dc69eca3
2
README
2
README
|
@ -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
2
tr.c
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user