delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/23/15:20:48

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <412A437D.2040605@alltel.net>
Date: Mon, 23 Aug 2004 14:20:29 -0500
From: Ken Dibble <kdibbleNOSPAM AT alltel DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
MIME-Version: 1.0
To: cygwin <cygwin AT cygwin DOT com>
Subject: Re: cp doesnot copy in certain cases of slash (\)

Given that you are using cygwin binaries which assume a POSIX 
environment in a DOS environment,
I am surprised that it ever works.

Koduru, Seshasai wrote:

>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?
>
>
>  
>



--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019