This is the mail archive of the
cygwin
mailing list for the Cygwin project.
cp doesnot copy in certain cases of slash (\)
- From: "Koduru, Seshasai" <Seshasai dot Koduru at ca dot com>
- To: <cygwin at cygwin dot com>
- Date: Tue, 24 Aug 2004 00:33:47 +0530
- Subject: cp doesnot copy in certain cases of slash (\)
Hi,
Following is the test case:
------------START-------------
C:\>c:\cygwin\bin\mkdir.exe -p c:\src c:\dst
C:\>c:\cygwin\bin\touch.exe c:\src\newfile
C:\>c:\cygwin\bin\cp.exe c:\src\newfile c:\dst
/usr/bin/cp: cannot create regular file `c:\\dst/c:\\src\\newfile': No
such file or directory
C:\>c:\cygwin\bin\cp.exe c:\src\newfile c:\dst\newfile
C:\>c:\cygwin\bin\cp.exe c:\src/newfile c:\dst
------------END-------------
In the first case of cp command it does not copy the file whereas in the
next two cases it copies properly. I am "JAM" which produces statements
like in case 1. So, is there any way in which cp will work for case 1
also?
Thanks,
Seshasai
--
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/