On Thu, 08 Jun 2017 15:33:11 +0200, Marc Espie wrote: > There is zero option that says "assume all those patches are correct and > error out if something untowards happen". > > This is really annoying for ports. > > - prompting for non-existent filenames breaks automated builds... dpb avoids > that by explicitly zapping stdin. > > - the new one. In the absence of input, patch automatically assumes -R when > needed... just ran into that one with a patch that didn't get removed.
You can use the -N flag to prevent patch from switching to reversed mode. There is not currently a flag to error out when patch would otherwise prompt the user. - todd