http://www.perlmonks.org?node_id=1087434


in reply to OpenBSD's patch

I'd try searching for the string "--dry-run" in the output of "patch --help".

Both "--help" and "--dry-run" are probably GNU specific (GNU uses double dashes). On other systems, "patch --help" will give you error messages, but will never print "--dry-run".

By the way, according to the man page, OpenBSD's patch program is derived from the one authored by Larry Wall.