bug in cp
Stewart Morris <[email protected]> Wed, 26 Mar 2003 13:09:56 +0000
| Newsgroups | gmane.comp.gnu.fileutils.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hello, fileutils version: 4.1 cc: gcc os: solaris 7 I made a copy of my files with the '-a -v -u' flags. I then re-ran cp with the same flags on the same files (none of which had changed and it updated a significant proportion of them. As a simple example: # ls -l .tcshrc* -rw-r--r-- 1 stewart 340 Mar 11 13:05 .tcshrc # cp -a -v -u .tcshrc .tcshrc.cp `.tcshrc' -> `.tcshrc.cp' # ls -l .tcshrc* -rw-r--r-- 1 stewart 340 Mar 11 13:05 .tcshrc -rw-r--r-- 1 stewart 340 Mar 11 13:05 .tcshrc.cp # cp -a -v -u .tcshrc .tcshrc.cp `.tcshrc' -> `.tcshrc.cp' # touch .tcshrc.cp # cp -a -v -u .tcshrc .tcshrc.cp # This behaviour appears to be random but happens more often in more recent files. On older files, the following: # ls -l .signature* -rw-r--r-- 1 stewart 322 Oct 25 10:33 .signature # cp -a -v -u .signature .signature.cp `.signature' -> `.signature.cp' # ls -l .signature* -rw-r--r-- 1 stewart 322 Oct 25 10:33 .signature -rw-r--r-- 1 stewart 322 Oct 25 10:33 .signature.cp # cp -a -v -u .signature .signature.cp # Thanks, - Stewart