Up to [local] / src / usr.bin / patch
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_5_8
Revision 1.53 / (download) - annotate - [select for diffs], Fri Jul 31 00:24:14 2015 UTC (8 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8
Changes since 1.52: +14 -2 lines
Diff to previous 1.52 (colored)
Account for newlines in substitution (s///) commands. Substitution commands might contain a newline in the replacement pattern (escaped with a backslash before it), causing patch's understanding of the state the ed child process is in to diverge from reality. This can lead to patch unwillingly feeding '!' (execute shell command) lines to ed. From Martin Natano. OK deraadt@