Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Mar 2002 21:12:50 -0800 (PST)
From:      Peter Leftwich <Hostmaster@Video2Video.Com>
To:        FreeBSD Questions <FreeBSD-Questions@FreeBSD.Org>
Subject:   BUG? mv dir/subdirs & cp -pRP
Message-ID:  <20020322210527.W18094-100000@66-75-1-142.san.rr.com>

next in thread | raw e-mail | index | archive | help
Has this been discussed already?  Whenever I "mv <directory>
/some/place/else/" it seems like the "cp -pRP" command that actually occurs
does *not* preserve the last modified date and time for directories and
subdirectories, but *does* do so for files.  *-Ack!!-*

Someone off-list told me that this looked like a bug because the mv command
creates the directory with preserved/original modification info, but then
the act of copying files (using preservation) into that new directory
*changes* the directory's last modified info to "just now!"

Shouldn't the mv binary somehow use mtime to fix this paradox?  Windows'
"move" did not feature (haha) this bug.  Am I on to something here??

--
Peter Leftwich
President & Founder
Video2Video Services
Box 13692, La Jolla, CA, 92039 USA
+1-413-403-9555


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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