Is that really intended? I have to do 'touch' externally to make it correct.
The external "cp" command on unix does touch the destination file.
--
// _ ___ Michal "Sektor" Malecki <sektor(whirl)kis.p.lodz.pl>
\\ L_ |/ `| /^\ ,() <ethourhs(O)gmail.com>
// \_ |\ \/ \_/ /\ C++ bez cholesterolu: http://www.intercon.pl/~sektor/cbx
"I am allergic to Java because programming in Java reminds me casting spells"
It's that way because it makes it easier to do archival backups. If you
want the mtime of the destination to be *now*, try this:
proc creatingFileCopy {source destination} {
file copy $source $destination
file mtime $destination [clock seconds]
}
You might argue that there should be an option to tell [file copy] to
not copy the metadata. I'd probably not argue the matter, but currently
the metadata copy is done, since it's part of producing a "copy".
Donal.
I might argue that there should be an option to file copy:
% file copy -force -mtime $source $target
And it's fine. In particular, works as unix cp command.