Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Aug 1995 11:27:06 +0200
From:      Wolfram Schneider <wosch@cs.tu-berlin.de>
To:        FreeBSD-gnats-submit@freebsd.org, wosch@cs.tu-berlin.de
Subject:   bin/689: mv(1) manpage
Message-ID:  <199508150927.LAA00437@localhost>
Resent-Message-ID: <199508151000.DAA03745@freefall.FreeBSD.org>

next in thread | raw e-mail | index | archive | help

>Number:         689
>Category:       bin
>Synopsis:       mv(1) manpage
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 15 03:00:02 PDT 1995
>Last-Modified:
>Originator:     Wolfram Schneider
>Organization:
>Release:        FreeBSD 2.0-ALPHA i386
>Environment:
>Description:

from manpage:

     As the rename(2) call does not work across file systems, mv uses cp(1)
     and rm(1) to accomplish the move.  The effect is equivalent to:

           rm -f destination_path && \
           cp -pr source_file destination && \
              ^^^
           rm -rf source_file


Fix:
           rm -f destination_path && \
           cp -PRp source_file destination && \
           rm -rf source_file


>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199508150927.LAA00437>