Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: Soren A <soren_andersen@fastmail.fm>
Subject: Re: patch(1) (Win32) and path separators
Date: Fri, 22 Nov 2002 17:46:53 +0000 (UTC)
Organization: Occasionally Sporadically
Lines: 35
Message-ID: <Xns92CE825B5DBA4soren1Gmane@80.91.224.249>
References: <Pine.GSO.4.44.0211191349120.4275-100000@slinky.cs.nyu.edu> <3DDA8DD9.1080608@ntlworld.com>
NNTP-Posting-Host: ny-kenton2a-951.buf.adelphia.net
X-Trace: main.gmane.org 1037987213 27353 24.51.95.183 (22 Nov 2002 17:46:53 GMT)
X-Complaints-To: usenet@main.gmane.org
NNTP-Posting-Date: Fri, 22 Nov 2002 17:46:53 +0000 (UTC)
User-Agent: Xnews/L5
X-Archive: encrypt

Parish <parish@ntlworld.com> wrote around 19 Nov 2002 
news:3DDA8DD9.1080608@ntlworld.com:

>> Try 'patch -p0 --dry-run < filename'.
> 
> That did it. Thanks Igor :-)
> 
> I'd always assumed that without -p patch obeyed the path in the diff and 
> that -p was only needed if, for example, the path in the diff was 
> absolute and you needed a relative one. I didn't read all of the -p 
> section in the manpage because it didn't seem to be what I needed, but 
> /now/ I've read the last paragraph.

I don't always use a tool like patch frequently enough to remember such 
subtleties, myself. This was a helpful exchange because I was struggling 
with this just yesterday.

{snippo}
> Thanks again for the help.

Yes, thanks!

> Regards,
> 
> Parish (who's going to make 'patch' an alias for 'patch -p0' ;-) )

Me too ;-)

  Soren A



-- 
Yes, it's really Sören, not Soren.




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

