delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/07/16:46:40

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: David Rees <d DOT rees DOT l AT usa DOT net>
To: cygwin AT sources DOT redhat DOT com
Subject: Re: patch problem with forward/backward slashes in patch file
Date: Wed, 07 Mar 2001 13:11:05 -0800
Message-ID: <6u8datckbntbi7iv802m2auvc9k55bokro@4ax.com>
References: <kh2bat4jjv8j6e1vtgdq6jrsj8s02o4co2 AT 4ax DOT com> <4nrbat4k7l19ndugn851cro7072ai9ftqt AT 4ax DOT com> <3AA640C2 DOT 61D96C57 AT yahoo DOT com>
In-Reply-To: <3AA640C2.61D96C57@yahoo.com>
X-Mailer: Forte Agent 1.8/32.548
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id QAA28290

On Wed, 07 Mar 2001 09:08:02 -0500, Earnie Boyd wrote:

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


$ cygcheck patch
Found: C:\apps\cygwin\bin\patch.exe
C:\apps\cygwin\bin\patch.exe
  C:\apps\cygwin\bin\cygwin1.dll
    C:\WINNT\System32\KERNEL32.dll
      C:\WINNT\System32\NTDLL.DLL

d



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

- Raw text -


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