bugGNU patch - Bugs: bug #25860, Patch --dry-run fails when a patch...


bug #25860: Patch --dry-run fails when a patch modifies files more than once

Submitted by:  Andreas Gruenbacher <agruen>
Submitted on:  Sat 14 Mar 2009 02:07:41 PM UTC  
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Postponed
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 23 Dec 2019 12:43:48 PM UTC, comment #1: 

Also, what is the correct behaviour when applying multiple patches in reverse (-R) (--dry-run or not)?

It seems logically necessary that hunks should be reversed from last to first, but POSIX doesn't address this as far as I can see. Presumably this has never worked on any patch implementation, so it's open to define the correct behaviour, or make it specifically undefined.

/df <dirkf>
Sat 14 Mar 2009 02:07:41 PM UTC, original submission:  

When a patch modifies the same file more than once and the changes conflict, patch --dry-run will fail even for patches
which would apply without --dry-run.

Andreas Gruenbacher <agruen>
Project Administrator


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by dirkf (Posted a comment)
  • -email is unavailable- added by agruen
  • -email is unavailable- added by agruen (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-04-06 agruen StatusNone => Postponed
    2009-03-20 agruen Carbon-Copy- => Added appfault@hotmail.com

    Back to the top

    Powered by Savane 3.7