summaryrefslogtreecommitdiffstats
path: root/bin/mv/mv.1
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1998-05-15 06:30:58 +0000
committercharnier <charnier@FreeBSD.org>1998-05-15 06:30:58 +0000
commitcf1a881890643db8396c6b430f309529fe461a01 (patch)
tree709d2a8061e8b93da2bdf730a891006cb218f19d /bin/mv/mv.1
parent8a9755ceef4307bb15a25bc49167da719cfbc0fa (diff)
downloadFreeBSD-src-cf1a881890643db8396c6b430f309529fe461a01.zip
FreeBSD-src-cf1a881890643db8396c6b430f309529fe461a01.tar.gz
Correct use of .Nm. Add rcsid.
Diffstat (limited to 'bin/mv/mv.1')
-rw-r--r--bin/mv/mv.119
1 files changed, 9 insertions, 10 deletions
diff --git a/bin/mv/mv.1 b/bin/mv/mv.1
index 784e83b..c706dcc 100644
--- a/bin/mv/mv.1
+++ b/bin/mv/mv.1
@@ -33,7 +33,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)mv.1 8.1 (Berkeley) 5/31/93
-.\" $Id: mv.1,v 1.9 1997/02/22 14:04:11 peter Exp $
+.\" $Id: mv.1,v 1.10 1997/10/26 10:33:02 helbig Exp $
.\"
.Dd May 31, 1993
.Dt MV 1
@@ -49,9 +49,8 @@
.Op Fl f | Fl i
.Ar source ... directory
.Sh DESCRIPTION
-.Pp
In its first form, the
-.Nm mv
+.Nm
utility renames the file named by the
.Ar source
operand to the destination path named by the
@@ -61,7 +60,7 @@ This form is assumed when the last operand does not name an already
existing directory.
.Pp
In its second form,
-.Nm mv
+.Nm
moves each file named by a
.Ar source
operand to a destination file in the existing directory named by the
@@ -82,8 +81,8 @@ option overrides any previous
.Fl i
options.)
.It Fl i
-Causes
-.Nm mv
+Cause
+.Nm
to write a prompt to standard error before moving a file that would
overwrite an existing file.
If the response from the standard input begins with the character
@@ -103,7 +102,7 @@ It is an error for either the
operand or the destination path to specify a directory unless both do.
.Pp
If the destination path does not have a mode which permits writing,
-.Nm mv
+.Nm
prompts the user for confirmation as specified for the
.Fl i
option.
@@ -111,7 +110,7 @@ option.
As the
.Xr rename 2
call does not work across file systems,
-.Nm mv
+.Nm
uses
.Xr cp 1
and
@@ -125,7 +124,7 @@ rm -f destination_path && \e
.Ed
.Pp
The
-.Nm mv
+.Nm
utility exits 0 on success, and >0 if an error occurs.
.Sh SEE ALSO
.Xr cp 1 ,
@@ -133,7 +132,7 @@ utility exits 0 on success, and >0 if an error occurs.
.Xr symlink 7
.Sh STANDARDS
The
-.Nm mv
+.Nm
utility is expected to be
.St -p1003.2
compatible.
OpenPOWER on IntegriCloud