This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]