[Linux-disciples] patch(1)

Stephen R Laniel steve at laniels.org
Wed Jul 5 12:21:35 EDT 2006


On Wed, Jul 05, 2006 at 12:21:28PM -0400, Dylan Thurston wrote:
> According to the man patch, '-p' cuts out equal numbers of slashes from
> both sets of file names.

Right. This is the difficulty that I'm trying to get around.
I diffed the directories like so:

diff -r /home/slaniel/wordpress/wordpress-2.0.2-orig/ /home/slaniel/svn/budgetblog/trunk/htdocs/ > difffile

The first directory has five slashes in it, whereas the
second has seven. So when I do

patch -b < difffile

it's not clear whether I want -p5 or -p7. And as you note,
patch(1) strips the same number of slashes off both
directories.

-- 
Stephen R. Laniel
steve at laniels.org
Cell: +(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20060705/85891916/attachment.pgp


More information about the Linux-disciples mailing list