delorie.com/archives/browse.cgi | search |
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: | patch problem with forward/backward slashes in patch file |
Date: | Tue, 06 Mar 2001 17:12:35 -0800 |
Message-ID: | <kh2bat4jjv8j6e1vtgdq6jrsj8s02o4co2@4ax.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 UAA16323 |
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 $ patch -d . -i dgrPatches/zip.diff can't find file to patch at input line 16 Perhaps you should have used the -p or --strip option? The text leading up to this was: -------------------------- |Zip changes | |Fixes a bug in Zip so that its source zip files are closed after |it is done and adds tests to verify this. | |* files |NONE | |Index: src/testcases/org/apache/tools/ant/taskdefs/ZipTest.java |=================================================================== |RCS file: /home/cvspublic/jakarta-ant/src/testcases/org/apache/tools/ant/taskde fs/ZipTest.java,v |retrieving revision 1.3 |diff -u -r1.3 ZipTest.java |--- 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 -------------------------- File to patch: src/testcases/org/apache/tools/ant/taskdefs/ZipTest.java patching file `src/testcases/org/apache/tools/ant/taskdefs/ZipTest.java' -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |