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

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
MIME-Version: 1.0
Subject: cp doesnot copy in certain cases of slash (\)
Date: Tue, 24 Aug 2004 00:33:47 +0530
Message-ID: <5C97FD5F888F6C41B267BBBCE94DC4E71EF44B@inhyms21.ca.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Koduru, Seshasai" <Seshasai DOT Koduru AT ca DOT com>
To: <cygwin AT cygwin DOT com>
X-OriginalArrivalTime: 23 Aug 2004 19:03:47.0413 (UTC) FILETIME=[EB257050:01C48943]
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i7NJ3rLs001859

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/


- Raw text -


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