Am 28.05.2008 um 20:51 schrieb Rene Gollent:
On Wed, May 28, 2008 at 1:49 PM, Andreas Färber <andreas.faerber@xxxxxx > wrote:Am 28.05.2008 um 20:34 schrieb Rene Gollent:the number following the p indicates how many levels of the filename paths to remove before trying to apply the patch. I.e. -p0 removes the component preceding the first /, -p1 removes a/b, etc.I'm pretty sure you're off by one there! ;)That's what my man page for patch said....
I can't argue against that then.OSX v10.5 man page (dated 2003/05/08, v2.5.8) has it different and so does the GNU diffutils manual:
http://www.gnu.org/software/diffutils/manual/html_node/patch-Directories.html#patch%20DirectoriesLet's conclude that it might differ between versions or systems. Stephan, check patch --help, and in doubt use --dry-run first.
Andreas