summaryrefslogtreecommitdiff
path: root/bin/mv
diff options
context:
space:
mode:
authorMike Pechkin <mpech@cvs.openbsd.org>2002-02-11 18:43:53 +0000
committerMike Pechkin <mpech@cvs.openbsd.org>2002-02-11 18:43:53 +0000
commit08be39f5bb2c3749f037ee6a116aec7656b0460b (patch)
tree94d8c274d8fb74b16780ae5b6e401c511d9f84d5 /bin/mv
parent11661b37fd11040c9eb7ea938591fd8c371e7c9c (diff)
Initial patch.
When you give command examples in a manual page prefix them with $ command or # command deraadt@ ok
Diffstat (limited to 'bin/mv')
-rw-r--r--bin/mv/mv.111
1 files changed, 6 insertions, 5 deletions
diff --git a/bin/mv/mv.1 b/bin/mv/mv.1
index 3518c695e50..0953ab5af8d 100644
--- a/bin/mv/mv.1
+++ b/bin/mv/mv.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mv.1,v 1.14 2001/12/21 11:41:49 mpech Exp $
+.\" $OpenBSD: mv.1,v 1.15 2002/02/11 18:43:51 mpech Exp $
.\" $NetBSD: mv.1,v 1.8 1995/03/21 09:06:51 cgd Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993
@@ -116,7 +116,7 @@ and
to accomplish the move.
The effect is equivalent to:
.Bd -literal -offset indent
-rm -f destination_path && \e
+$ rm -f destination_path && \e
\tcp -pr source_file destination && \e
\trm -rf source_file
.Ed
@@ -125,7 +125,7 @@ The
.Nm
utility exits 0 on success or >0 if an error occurred.
.Sh EXAMPLES
-.Cm mv -f foo bar
+.Cm $ mv -f foo bar
.Pp
Rename file
.Pa foo
@@ -135,8 +135,9 @@ overwriting
.Pa bar
if it already exists.
.Pp
-.Cm mv -i -- -f bar ,
-.Cm mv -i ./-f bar
+.Cm $ mv -i -- -f bar
+.br
+.Cm $ mv -i ./-f bar
.Pp
Either of these commands will rename the file
.Pa -f