Add mandoc-manpage for rm(1)
and mark it as finished in README.
This commit is contained in:
parent
3728bd9305
commit
97ad252d5d
2
README
2
README
|
@ -55,7 +55,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 (-i)
|
=* rm yes (-i)
|
||||||
= rmdir no -p
|
= rmdir no -p
|
||||||
= setsid non-posix none
|
= setsid non-posix none
|
||||||
= sleep yes none
|
= sleep yes none
|
||||||
|
|
62
rm.1
62
rm.1
|
@ -1,22 +1,40 @@
|
||||||
.TH RM 1 sbase\-VERSION
|
.Dd January 30, 2015
|
||||||
.SH NAME
|
.Dt RM 1 sbase\-VERSION
|
||||||
rm \- remove files and directories
|
.Sh NAME
|
||||||
.SH SYNOPSIS
|
.Nm rm
|
||||||
.B rm
|
.Nd remove directory entries
|
||||||
.RB [ \-fRr ]
|
.Sh SYNOPSIS
|
||||||
.RI [ file ...]
|
.Nm rm
|
||||||
.SH DESCRIPTION
|
.Op Fl f | Fl i
|
||||||
.B rm
|
.Op Fl Rr
|
||||||
removes the given files and directories.
|
.Ar file ...
|
||||||
.SH OPTIONS
|
.Sh DESCRIPTION
|
||||||
.TP
|
.Nm
|
||||||
.B \-f
|
removes each
|
||||||
ignore files that cannot be removed.
|
.Ar file .
|
||||||
.TP
|
If
|
||||||
.B \-R
|
.Ar file
|
||||||
equivalent to -r.
|
is a directory, it has to be empty unless
|
||||||
.TP
|
.Fl R
|
||||||
.B \-r
|
or
|
||||||
remove directories recursively.
|
.Fl r
|
||||||
.SH SEE ALSO
|
is specified.
|
||||||
.IR remove (3)
|
.Sh OPTIONS
|
||||||
|
.Bl -tag -width Ds
|
||||||
|
.It Fl f | Fl i
|
||||||
|
Do not prompt | Prompt before removing
|
||||||
|
.Ar file .
|
||||||
|
In the former case, do not report when
|
||||||
|
.Ar file
|
||||||
|
doesn't exist or couldn't be removed.
|
||||||
|
.It Fl Rr
|
||||||
|
Remove directories recursively.
|
||||||
|
.El
|
||||||
|
.Sh SEE ALSO
|
||||||
|
.Xr remove 3
|
||||||
|
.Sh STANDARDS
|
||||||
|
The
|
||||||
|
.Nm
|
||||||
|
utility is compliant with the
|
||||||
|
.St -p1003.1-2008
|
||||||
|
specification except from prompting.
|
||||||
|
|
5
rm.c
5
rm.c
|
@ -10,7 +10,7 @@
|
||||||
static void
|
static void
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
eprintf("usage: %s [-fRr] FILE...\n", argv0);
|
eprintf("usage: %s [-f | -i] [-Rr] file ...\n", argv0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -20,6 +20,9 @@ main(int argc, char *argv[])
|
||||||
case 'f':
|
case 'f':
|
||||||
rm_fflag = 1;
|
rm_fflag = 1;
|
||||||
break;
|
break;
|
||||||
|
case 'i':
|
||||||
|
rm_fflag = 0;
|
||||||
|
break;
|
||||||
case 'R':
|
case 'R':
|
||||||
case 'r':
|
case 'r':
|
||||||
rm_rflag = 1;
|
rm_rflag = 1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user