109f6b5a60
1) Make argument-naming consistent with other tools (cp(1), ...) 2) style fixes 3) usage() fix 4) BUGFIX: Probably from the old non-arg.h days, the directory- check was only done when argc > 3, but with arg.h, this ignores the case when 3 arguments were given. This is actually a pretty serious issue and I'm glad it's fixed. 5) Moreover, be more verbose when stat() fails and make it clearer what the hell is going on at this checkpoint.
38 lines
534 B
Groff
38 lines
534 B
Groff
.Dd March 4, 2015
|
|
.Dt MV 1
|
|
.Os sbase
|
|
.Sh NAME
|
|
.Nm mv
|
|
.Nd move files and directories
|
|
.Sh SYNOPSIS
|
|
.Nm
|
|
.Op Fl f
|
|
.Ar source ...
|
|
.Ar dest
|
|
.Sh DESCRIPTION
|
|
.Nm
|
|
moves each
|
|
.Ar source
|
|
to
|
|
.Ar dest .
|
|
If only one
|
|
.Ar source
|
|
is given and
|
|
.Ar dest
|
|
is not a directory,
|
|
.Nm
|
|
overwrites the latter with the former.
|
|
.Sh OPTIONS
|
|
.Bl -tag -width Ds
|
|
.It Fl f
|
|
Do not prompt before overwriting.
|
|
.Ar dest .
|
|
Prompting has not been implemented yet.
|
|
.El
|
|
.Sh STANDARDS
|
|
The
|
|
.Nm
|
|
utility is compliant with the
|
|
.St -p1003.1-2008
|
|
specification except from prompting.
|