diff options
Diffstat (limited to 'bin/mv')
-rw-r--r-- | bin/mv/mv.1 | 19 | ||||
-rw-r--r-- | bin/mv/mv.c | 8 |
2 files changed, 14 insertions, 13 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. diff --git a/bin/mv/mv.c b/bin/mv/mv.c index e30b16e..5d82177 100644 --- a/bin/mv/mv.c +++ b/bin/mv/mv.c @@ -32,8 +32,6 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $Id: mv.c,v 1.16 1997/10/26 10:33:02 helbig Exp $ */ #ifndef lint @@ -43,7 +41,11 @@ static char const copyright[] = #endif /* not lint */ #ifndef lint -static char const sccsid[] = "@(#)mv.c 8.2 (Berkeley) 4/2/94"; +#if 0 +static char sccsid[] = "@(#)mv.c 8.2 (Berkeley) 4/2/94"; +#endif +static const char rcsid[] = + "$Id$"; #endif /* not lint */ #include <sys/param.h> |