Audit rm(1)

1) One small argc-style-matter
2) manpage cleanup
3) NOTE: The utility-functions will be evaluated separately.
This commit is contained in:
FRIGN 2015-02-28 21:30:20 +01:00
parent 80a394139a
commit 6f715d8c6d
3 changed files with 5 additions and 5 deletions

2
README
View File

@ -56,7 +56,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support,
=* pwd yes none =* pwd yes none
= readlink non-posix none = readlink non-posix none
=* renice yes none =* renice yes none
=* rm yes none (-i) =*| rm yes none (-i)
=* rmdir yes none =* rmdir yes none
# sed # sed
seq non-posix none seq non-posix none

6
rm.1
View File

@ -1,4 +1,4 @@
.Dd February 19, 2015 .Dd February 28, 2015
.Dt RM 1 .Dt RM 1
.Os sbase .Os sbase
.Sh NAME .Sh NAME
@ -23,9 +23,9 @@ is specified.
.Sh OPTIONS .Sh OPTIONS
.Bl -tag -width Ds .Bl -tag -width Ds
.It Fl f .It Fl f
Do not prompt before removing. Do not prompt before removing
.Ar file . .Ar file .
In the former case, do not report when Do not report when
.Ar file .Ar file
doesn't exist or couldn't be removed. doesn't exist or couldn't be removed.
.It Fl Rr .It Fl Rr

2
rm.c
View File

@ -23,7 +23,7 @@ main(int argc, char *argv[])
usage(); usage();
} ARGEND; } ARGEND;
if (argc < 1) { if (!argc) {
if (!rm_fflag) if (!rm_fflag)
usage(); usage();
else else