BUG: 'cp -f ...' create an dir instead of a copy of e file!
ErWagner
erhard.wagner@wagner-systems.de
Fri Aug 6 11:40:00 GMT 2004
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/
More information about the Cygwin
mailing list