Summary: | patch(1) assumes that a file appears only once in the patch in check-only mode | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | deeptech71 <deeptech71> | ||||||
Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||||
Status: | Open --- | ||||||||
Severity: | Affects Only Me | ||||||||
Priority: | Normal | ||||||||
Version: | Unspecified | ||||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
deeptech71@gmail.com
2009-09-15 21:40:03 UTC
let me be more concise: put words.txt and con.patch in one directory, cd to that directory, then: # cat con.patch | patch -p1 -Cs the test run says that the patch looks OK (applies cleanly), so we proceed with actual patching: # cat con.patch | patch -p1 -C but the patch actually fails, so the test run lied ! i've just noticed that in my 2nd message i've screwed up the command flags. restating everything: put words.txt and con.patch in one directory, cd to that directory, and then do: $ cat con.patch | patch -sp1 --check the --check flag means "do not actually edit files, just check to see what would happen". the above test run says that the patch applies cleanly. now do: $ cat con.patch | patch -sp1 notice that now the patch actually fails, so the test run lied. For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped |