the bitrig stable/1.0 branch has been updated by natano with 1 new commit: commit 8cfc647b2c41576cae07f30d57c3903e7324fb69 diff: https://github.com/bitrig/bitrig/commit/8cfc647 author: Martin Natano <nat...@natano.net> date: Thu Jul 30 08:37:42 2015 +0200
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. Finding out how to do this is left as an exercise to the reader. ok pedro@ M usr.bin/patch/pch.c