This is the mail archive of the
cygwin
mailing list for the Cygwin project.
BUG: 'cp -f ...' create an dir instead of a copy of e file!
- From: "ErWagner" <erhard dot wagner at wagner-systems dot de>
- To: cygwin at cygwin dot com
- Date: Fri, 6 Aug 2004 13:23:53 +0200
- Subject: BUG: 'cp -f ...' create an dir instead of a copy of e file!
My actual revision Cygwin runs under
Windows NT Ver 4.0 Build 1381 Service Pack 6
shell: BASH 2.05b
cp doesn't work correct
if the destination file do not exist the result is what I expect
# result if y.log do not exist
$ cp -f x.log y.log
$ ls
-rw-rw-rw- 1 ???????? ???????? 30 Aug 4 18:14 y.log
# result if y.log already exist!
$ cp -f x.log y.log
cp: overwrite `y.log'? y
cp: writing `y.log': Invalid request code
$ ls
drwxrwxrwx+ 2 ???????? ???????? 0 Aug 4 18:13 y.log/
# this works fine
$ cp --remove-destination x.log y.log
regards Erhard
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/