Audit mv(1)
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.
This commit is contained in:
10
mv.1
10
mv.1
@@ -1,4 +1,4 @@
|
||||
.Dd February 19, 2015
|
||||
.Dd March 4, 2015
|
||||
.Dt MV 1
|
||||
.Os sbase
|
||||
.Sh NAME
|
||||
@@ -8,17 +8,17 @@
|
||||
.Nm
|
||||
.Op Fl f
|
||||
.Ar source ...
|
||||
.Ar destination
|
||||
.Ar dest
|
||||
.Sh DESCRIPTION
|
||||
.Nm
|
||||
moves each
|
||||
.Ar source
|
||||
to
|
||||
.Ar destination .
|
||||
.Ar dest .
|
||||
If only one
|
||||
.Ar source
|
||||
is given and
|
||||
.Ar destination
|
||||
.Ar dest
|
||||
is not a directory,
|
||||
.Nm
|
||||
overwrites the latter with the former.
|
||||
@@ -26,7 +26,7 @@ overwrites the latter with the former.
|
||||
.Bl -tag -width Ds
|
||||
.It Fl f
|
||||
Do not prompt before overwriting.
|
||||
.Ar destination .
|
||||
.Ar dest .
|
||||
Prompting has not been implemented yet.
|
||||
.El
|
||||
.Sh STANDARDS
|
||||
|
Reference in New Issue
Block a user