Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
X-Apparently-From: <earnie?boyd@yahoo.com>
Message-ID: <3AA640C2.61D96C57@yahoo.com>
Date: Wed, 07 Mar 2001 09:08:02 -0500
From: Earnie Boyd <earnie_boyd@yahoo.com>
Reply-To: cygwin@sources.redhat.com
X-Mailer: Mozilla 4.76 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: David Rees <d.rees.l@usa.net>
CC: cygwin@sources.redhat.com
Subject: Re: patch problem with forward/backward slashes in patch file
References: <kh2bat4jjv8j6e1vtgdq6jrsj8s02o4co2@4ax.com> <4nrbat4k7l19ndugn851cro7072ai9ftqt@4ax.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

David Rees wrote:
> 
> Kevin Wright emailed me a suggestion that allowed me to find a
> solution (thanks!), but I still think there may be something wrong
> with patch.
> 
> First of all the "-d ." in my call is redundant. I had been using it
> for testing, but feel free to ignore it in tracking down the problem.
> 
> Also, as I hope I implied (but didn't say) in my previous email,
> altering the diff file to use backward slashes as follows also causes
> patch to run fine:
> |--- src\testcases\org\apache\tools\ant\taskdefs\ZipTest.java   2001/03/02 16:01:01     1.3
> |+++ src\testcases\org\apache\tools\ant\taskdefs\ZipTest.java   2001/03/07 00:11:39
> 
> All this said, using "-p0" or "-p" solves the problem. However, from
> my understanding, patch should do -p0 by default since its a relative
> directory. So what I think seems to be happening is that patch doesn't
> recognize a relative path inside a patch file as relative if it uses
> forward slashes.
> 

Hmm...  Are you sure it's a Cygwinized patch?  What does the output of
`cygcheck patch' give?

Earnie.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

