X-Spam-Check-By: sourceware.org
Mime-Version: 1.0
Date: Sun, 6 Aug 2006 20:26:11 -0800
Message-ID: <7ADB1158828.00000326wolfpack@inbox.com>
From: Shane <wolfpack@inbox.com>
Subject: Re: Checking XCOPY Exit Value in Cygwin Bash
To: cygwin@cygwin.com
In-Reply-To: <20060807010427.GB32330@trixie.casa.cgf.cx>
References: <44d664a8.30904@inbox.com>   <20060806203655.gc30223@trixie.casa.cgf.cx>   <74382bafeaa.000000d2wolfpack@inbox.com>
X-Mailer: INBOX.COM
Content-Type: text/plain; charset=US-ASCII
X-IWM-ACU: 6z4jVws8pjM_Q5BLZD-a9aDjQiqu9bg6Lk7yiROLzK5i5lniEKR3tSLRlHkj   weX6qP_obcb8i7DOFMGv7eoImHugXxaScQbBGuG75BmHVjXgH_4W2abc0hYT   r9v3LFs4vVvuXnqfY
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k774QTjH017890

> What's wrong with "cp -a" or "cp -r"?
It only copied files that were directly under the source directory.
It didn't traverse the directories inside source recursively. I did some searching and,
I came up with a similar thread. Finally the tar method was recommended in it too.
Please refer : http://lists.samba.org/archive/samba/1999-December/016328.html and it's follow-ups.

Thanks and Regards
Shane


> -----Original Message-----
> From: cgf-no-personal-reply-please@cygwin.com
> Sent: Sun, 6 Aug 2006 21:04:27 -0400
> To: cygwin@cygwin.com
> Subject: Re: Checking XCOPY Exit Value in Cygwin Bash
> 
> On Mon, Aug 07, 2006 at 06:52:40AM +0900, Shane wrote:
> >Christopher Faylor wrote:
> >>Is there some reason why you are not using "cp" to accomplish your
> >>task?  "cp --help" should provide you with all sorts of options for
> >>copying files.  You should be able to press "cp" into service for this.
>>> 
> >>Using DOS utilities and DOS paths for this type of thing is putting you
> >>on the fringes of support for Cygwin.  I really wouldn't recommend it.
> >>Clearly this is not such a Windows-specific problem that it outside of
> >>the capabilities of a UNIX solution.
>> 
> >My initial attempt was with cp.  But I didn't see a way of preserving
> >the original directory structure of the source dir,
> 
> What's wrong with "cp -a" or "cp -r"?
> 
> --
> 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/

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


