Mail Archives: cygwin/2001/03/07/03:28:23
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.
d
On Tue, 06 Mar 2001 17:12:35 -0800, David Rees wrote:
>Sorry if this is answered somewhere, but I had a heck of time
>searching the archive for this subject - patch is a pretty popular
>word.
>
>I am having problem with patch in that it doesn't recognize forward
>slashed paths inside the patch file so it can't find the file to
>patch. If I cut and paste the exact same path in response to its "File
>to patch:" query then it continues happily. This happens from bash or
>from the windows command line.
>
>Below is a sample session.
>
>thanks,
>
>dave
....
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
- Raw text -