sbase

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

commit 6f715d8c6d8e9d620fce35c57c87851c65b229da
parent 80a394139a45501c8f8ca4f1b1315a343fb1c999
Author: FRIGN <dev@frign.de>
Date:   Sat, 28 Feb 2015 21:30:20 +0100

Audit rm(1)

1) One small argc-style-matter
2) manpage cleanup
3) NOTE: The utility-functions will be evaluated separately.

Diffstat:
MREADME | 2+-
Mrm.1 | 6+++---
Mrm.c | 2+-
3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/README b/README @@ -56,7 +56,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support, =* pwd yes none = readlink non-posix none =* renice yes none -=* rm yes none (-i) +=*| rm yes none (-i) =* rmdir yes none # sed seq non-posix none diff --git a/rm.1 b/rm.1 @@ -1,4 +1,4 @@ -.Dd February 19, 2015 +.Dd February 28, 2015 .Dt RM 1 .Os sbase .Sh NAME @@ -23,9 +23,9 @@ is specified. .Sh OPTIONS .Bl -tag -width Ds .It Fl f -Do not prompt before removing. +Do not prompt before removing .Ar file . -In the former case, do not report when +Do not report when .Ar file doesn't exist or couldn't be removed. .It Fl Rr diff --git a/rm.c b/rm.c @@ -23,7 +23,7 @@ main(int argc, char *argv[]) usage(); } ARGEND; - if (argc < 1) { + if (!argc) { if (!rm_fflag) usage(); else